Profiling C code on Windows when using Eclipse Profiling C code on Windows when using Eclipse windows windows

Profiling C code on Windows when using Eclipse


Commercial software:

  • Rational Quantify (expensive, slow, but very detailed)
  • AQTime (less expensive, less slow, a bit detailed)

Free software:

These commercial alternatives change the compiled code by 'instrumenting' (adding instructions) to it and perform the timing withing the added instructions. This means that they cause your application to slow down seriously.

These free alternatives use sampling, meaning they are less detailed, but very fast. In practice I found that especially Very Sleepy is very good to have a quick look at performance problems in your application.


There's a MinGW port of gprof that works just about the same as the Linux variant. You can either get a full MinGW installation (I think gprof is included but not sure) or get gprof from the MinGW binutils package.

For Eclipse, there's TPTP but it doesn't support profiling C/C++ as far as I know.