gprof性能测试工具

1.编译时加-pg选项,例如:gcc -pg test.c-o test_gprof。其中test后的_gprof一定要加上。会生成gmon.out。

2.运行程序。gprof test_gprof gmon.out

原文地址:https://www.cnblogs.com/xpylovely/p/10628093.html