I'm doing graphics programming with C++, OpenGL and the VTK library on Fedora.
I'm using gprof to try and figure out the bottleneck in my code. I'd also like to get precise timing information using this tool.
One concern is that when I timed the program myself, it ran for about 90 to 100 seconds max. When I profiled this same execution using gprof, it tells me that it ran for about twice this amount! (i.e. it says "granularity: each sample hit covers 4 byte(s) for 0.01% of 181.68 seconds".
This makes me concerned about the accuracy of gprof, or hopefully I'm just doing something wrong?
Thanks very much for your assistance!!!