What's your favorite profiling tool (for C++)

So far, I've only used Rational Quantify. I've heard great things about Intel's VTune, but have never tried it!

Edit: I'm mostly looking for software that will instrument the code, as I guess that's about the only way to get very fine results.


See also:

What are some good profilers for native C++ on Windows?


For linux development (although some of these tools might work on other platforms). These are the two big names I know of, there's plenty of other smaller ones that haven't seen active development in a while.

  • Valgrind
  • TAU - Tuning and Analysis Utilities

  • For Linux: Google Perftools

  • Faster than valgrind (yet, not so fine grained)
  • Does not need code instrumentation
  • Nice graphical output (--> kcachegrind)
  • Does memory-profiling, cpu-profiling, leak-checking

  • My only experience profiling C++ code is with AQTime by AutomatedQA (now SmartBear Software). It has several types of profilers built in (performance, memory, Windows handles, exception tracing, static analysis, etc.), and instruments the code to get the results.

    I enjoyed using it - it was always fun to find those spots where a small change in code could make a dramatic improvement in performance.

    链接地址: http://www.djcxy.com/p/40362.html

    上一篇: 优化C#/ .NET程序的技巧

    下一篇: 什么是你最喜欢的分析工具(用于C ++)