Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2004-06

profiling sampling rate

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Vincent Snijders

Hi,

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)

Regards,
Vincent Snijders.