Is there a way to run linux's prof
in a way equivalent to what a program with -gprof
would do? I know wouldn't be exact, but only statistically correct.
I'm basically looking for a way to do a gprof
-like analysis on a C/C++ program that includes debug symbols, but without recompiling it.