setting gprof sampling time?
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