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
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.