Mail Archives: djgpp/1996/06/02/14:35:23
Reply to message 7401392 from OWEN AT GEMEMAIL on 06/01/96 4:35AM
>I have tried to use gprof to profile programs like it says in the FAQ,
>but every time I run it it says gmon.out no such file or directory
You must compile _and_ link with -pg. The resulting program will run about
5 times slower and output a file called 'gmon.out' in the same directory as
the program itself. Then run gprof. Remember, you have to link with -pg too,
or it won't do any good!
John
- Raw text -