Profiling C code on Windows when using Eclipse

前端 未结 4 777
青春惊慌失措
青春惊慌失措 2021-01-05 02:39

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

4条回答
  •  遥遥无期
    2021-01-05 03:08

    Commercial software:

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

    Free software:

    • Very sleepy (www.codersnotes.com)
    • Luke StackWalker (lukestackwalker.sourceforge.net)

    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.

提交回复
热议问题