Profiling C code on Windows when using Eclipse

Pieter picture Pieter · Feb 20, 2010 · Viewed 8k times · Source

I know I can profile my code with gprof and kprof on Linux. Is there a comparable alternative to these applications on Windows?

Answer

AndiDog picture AndiDog · Feb 20, 2010

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.