Log in

View Full Version : Profiling an application under Linux with gprof



Lykurg
16th December 2007, 15:59
Hi,

I have seen the article about gprof on the wiki (http://wiki.qtcentre.org/index.php?title=Profiling_with_GNU_gprof), but I always get the error message:

gmon.out: No such file or directory
My program is build with the "-pg" switch and I have installed the debug version of qt. (Using Kubuntu 7.10)

Any idea why gprof dosn't work?


Thanks,
Lykurg

jacek
16th December 2007, 16:16
Did you follow the "Run the application as usual" step?

Lykurg
22nd December 2007, 08:58
Hi, the problem was, that the environment variables wasn't set probably. Sorry.