[fpc-pascal]profiling sampling rate

Vincent Snijders vslist at zonnet.nl
Thu Jun 3 14:14:48 CEST 2004


If I compile a program with -pg I can get profiling information with gprof. The sampling rate is 100 Hz, which means that the profiler looks 100 times each second in which procedure the progam is (if I describe it correctly).

Is there a way to make the sampling rate higher, because on computers with processors running GHz, each centisecond millions of instructions are handled and this low sampling rate gives a very poor view of where the time is spent. (I think it might have been OK for processor running at 4 MHz, back when gprof was designed)

Vincent Snijders.

More information about the fpc-pascal mailing list