The default sampling rate is 8192 Hz, using the RTC as the source of the sampling interrupts. You can adjust this by modifying one #define in gmon.h:
Redefine #define PROFHZ xxxx to the sampling rate.
The rate you select must be a power of 2 between 128 and 8192.