1. ctag,cxref,cflow 看代码的,查看函数调用关系 ,成为了Xopen标准了
2. gprof 分析程序的性能瓶颈
3. valgrind 分析内存泄漏和程序性能瓶颈,kcachegrind来查看profile的分析结果
2. gprof 分析程序的性能瓶颈
3. valgrind 分析内存泄漏和程序性能瓶颈,kcachegrind来查看profile的分析结果
gcc -o test -g test.c valgrind --tool=callgrind ./test
运行完之后文件夹下出现了callgrind.out.***便是日志文件。更massif一样,需要用工具转化:
callgrind_annotate callgrind.out.438kcachegrind callgrind.out.438就看到结果了