Looking for a low impact c++ profiler

前端 未结 2 503

I am looking for a low impact, os-independent profiler for c++ code.

When I say low impact, I am referring to something less intrusive than valgrind. I plan to use it i

2条回答
  •  旧时难觅i
    2021-02-02 03:26

    If you are using Windows, you can try my profiler, described here http://ravenspoint.wordpress.com/2010/06/16/timing/

    It sounds like it might be easier to use than yours, but it is not OS independent. It uses calls to QueryPerformanceCounter() which is a windows API. It is open source, so it might be worthwhile to port it to your OS, using whatever high performance timer is available there.

提交回复
热议问题