LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   setting gprof sampling time? (https://www.linuxquestions.org/questions/programming-9/setting-gprof-sampling-time-19548/)

togunter 04-26-2002 03:55 PM

setting gprof sampling time?
 
Hi-
I'm trying to profile some code on Red Hat 7.2 using "gprof". I am able to successfully profile, but the sampling time is pretty coarse. Is there anyway to change this? I have been able to use the "gprof -s" option to concatenate results from several runs, but it takes too long to get good statistics from this.

are there any other good profiling tools?

Why is the sampling even necessary? i would assume that compiling with "gcc -pg" would allow gcc to instrument every function call so that sampling would not be necessary.

thanks for any help

--tim


All times are GMT -5. The time now is 07:22 AM.