Question about Gprof
I just got through playing around with Gprof and my results seem to be nonsensical. The program, a directory lister, ran for about ten seconds and then exited normally. The gmon.out file appeared and I ran it through Gprof. The problem is that the results only show the program running for 0.02 seconds. I am doing all of this under windows and I was wondering if that perhaps is the problem.
Thanks in advance for the help,
Sounds about right. Compared to the glacially slow rate of reading from disk, your program did practically nothing at all. Instead it twiddled its thumbs for ten seconds.
Originally Posted by PetrolMan