Chinaunix首页 | 论坛 | 博客
  • 博客访问: 40763
  • 博文数量: 16
  • 博客积分: 635
  • 博客等级: 上士
  • 技术积分: 170
  • 用 户 组: 普通用户
  • 注册时间: 2009-10-23 09:21
文章分类
文章存档

2011年(5)

2010年(10)

2009年(1)

我的朋友

分类: C/C++

2011-02-24 09:27:57

Visualize call tree of a C functionRequirement

You want to visualize a call hierarchy of a C function.

Solution

Utilities you need are listed below:

  • graphviz

Take ‘rdbSaveBackground’ () for example:

cflow --format=posix --omit-arguments --level-indent='0=\t' --level-indent='1=\t' --level-indent=start='\t' -m 'rdbSaveBackground' ~/osprojects/redis/src/rdb.c | cflow2dot | dot -Tjpg -o rdb.jpg


[from:http://sunng.info/blog/2010/09/visualize-call-tree-of-a-c-function/

]

阅读(427) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~