Skip to main content

DEFAULT_PPROF_SAMPLE_RATE

Constant DEFAULT_PPROF_SAMPLE_RATE 

Source
pub const DEFAULT_PPROF_SAMPLE_RATE: usize = _; // 524_288usize
Expand description

Default average number of allocated bytes between recorded pprof samples.

This matches Go’s default heap profiling rate: one sampled allocation per 512 KiB of allocated bytes on average. A rate of 1 records every allocation, while 0 disables pprof stack recording.