Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
prof有没有办法以与程序相同的方式运行 linux -gprof?我知道不会是准确的,但只是在统计上是正确的。
prof
-gprof
我基本上是在寻找一种方法来对gprof包含调试符号的 C/C++ 程序进行类似分析,但无需重新编译它。
gprof
最近我对Google 性能工具的 CPU profiler 非常满意。程序在其下基本上以不失真的正常速度运行。不需要重新编译,建议链接到特殊库,但在大多数情况下也可以使用 LD_PRELOAD。