PDA

View Full Version : QT/C++ profiler



maverick_pol
31st October 2007, 15:05
Hi,

Could you suggest a profiler tool for Qt applications (Linux/windows/solaris/mac)
cross platform profiler or different ones for different platforms.

Thanks .

Maverick

jpn
31st October 2007, 15:11
Not very covering list but here's at least some: http://wiki.qtcentre.org/index.php?title=Profiling. Feel free the extend the list.. :)

marcel
31st October 2007, 21:23
For Windows you can try DevPartner or Intel Thread Checker or Rational Purify(used by TT). For Solaris you always have their own DTrace and for Mac you have Shark which comes with XCode, therefore free.

Piskvorkar
12th November 2012, 10:45
If you don't need to profile directly the Qt libraries, you can use multiplatform Embedded Profiler (http://www.embeddedprofiler.com) (free on Linux and Windows, unfortunatelly not available for Mac). It can provide a full call tree or just a function list.
It's based on using compilers' profiling support (-finstrument-functions for gcc/MinGW), /GH for MSVC) and can even show times with substracted profiling overhead.

In general you just need to add compiler specific flag (e.g. -finstrument-functions) and link profiler's library. Than the profiler provides a log which you can open in its PerformanceAnalyzer.

For more info see user manual on its pages.