分类: C/C++
2011-02-24 09:27:57
You want to visualize a call hierarchy of a C function.
SolutionUtilities you need are listed below:
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/
]