Did you try my last modification? Did it change anything for you?

Quote Originally Posted by Gopala Krishna View Post
Yup! you both are right. Anyway I am recompiling Qt tomorrow. I'll surely post after I do that. In the meanwhile I'd like to inform you people that I have never used cachegrind. Is that better than gprof ? If yes how should I use that ?
You do not need to compile anything special (besides DEBUG of course ;-)

Then call
$valgrind --tool=callgrind ./YOUR_APP
this will produce a file called callgrind.out.PID_OF_PROCESS

then you can call
$kcachegrind callgrind.out.PID_OF_PROCESS
http://kcachegrind.sourceforge.net/cgi-bin/show.cgi