gprof的替代品 [英] Alternatives to gprof

查看:126
本文介绍了gprof的替代品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

还有哪些其他程序与gprof做相同的事情?

What other programs do the same thing as gprof?

推荐答案

Valgrind 有说明计数分析器,它带有一个非常漂亮的可视化工具,称为 KCacheGrind .正如Mike Dunlavey所建议的那样,Valgrind会计算过程中存在于堆栈中的指令的分数,尽管我很遗憾地说,在存在相互递归的情况下,它似乎变得混乱.但是可视化工具非常好,比gprof早了几年.

Valgrind has an instruction-count profiler with a very nice visualizer called KCacheGrind. As Mike Dunlavey recommends, Valgrind counts the fraction of instructions for which a procedure is live on the stack, although I'm sorry to say it appears to become confused in the presence of mutual recursion. But the visualizer is very nice and light years ahead of gprof.

这篇关于gprof的替代品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆