I want to use gprof to optimize my program. But in its output, time is not counted for any function. All the entries for time are 0.0 . My program runs for 50s. My operating system is Mac OSX. I used
g++ -g -pg -o execname cppfiles.... to compile. How should I solve it? Thanks!
Is your program waiting on I/O? What is it supposed to do? Would it be possible to get a copy of the source, or at least a copy of the output of gprof?