diff options
Diffstat (limited to 'doc/development/performance.md')
-rw-r--r-- | doc/development/performance.md | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/development/performance.md b/doc/development/performance.md index 1dc7538c55b..3b59393bae6 100644 --- a/doc/development/performance.md +++ b/doc/development/performance.md @@ -247,8 +247,12 @@ The following configuration options can be configured: - `STACKPROF_ENABLED`: Enables stackprof signal handler on SIGUSR2 signal. Defaults to `false`. -- `STACKPROF_INTERVAL_US`: Sampling interval in microseconds. Defaults to - `10000` μs (100hz). +- `STACKPROF_MODE`: See [sampling modes](https://github.com/tmm1/stackprof#sampling). + Defaults to `cpu`. +- `STACKPROF_INTERVAL`: Sampling interval. Unit semantics depend on `STACKPROF_MODE`. + For `object` mode this is a per-event interval (every `n`th event will be sampled) + and defaults to `1000`. + For other modes such as `cpu` this is a frequency and defaults to `10000` μs (100hz). - `STACKPROF_FILE_PREFIX`: File path prefix where profiles are stored. Defaults to `$TMPDIR` (often corresponds to `/tmp`). - `STACKPROF_TIMEOUT_S`: Profiling timeout in seconds. Profiling will |