diff options
Diffstat (limited to 'perfprofd/config.h')
-rw-r--r-- | perfprofd/config.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/perfprofd/config.h b/perfprofd/config.h index 774f7e86..0ee23099 100644 --- a/perfprofd/config.h +++ b/perfprofd/config.h @@ -52,8 +52,12 @@ struct Config { // Desired sampling period (passed to perf -c option). Small // sampling periods can perturb the collected profiles, so enforce - // min/max. - uint32_t sampling_period = 5000; + // min/max. A value of 0 means perf default. sampling_frequency + // takes priority. + uint32_t sampling_period = 0; + // Desired sampling frequency (passed to perf -f option). A value of 0 + // means using sampling_period or default. + uint32_t sampling_frequency = 0; // Length of time to collect samples (number of seconds for 'perf // record -a' run). uint32_t sample_duration_in_s = 2; |