Repository navigation
feat(cli): add walltime unwinding mode and stack sample size options - #586
not-matthias wants to merge 2 commits into
Conversation
Merging this PR will not alter performance2 warnings
Comparing Footnotes
|
|
GuillaumeLagrange
left a comment
There was a problem hiding this comment.
some few quirks to make sure we handle properly
2b0a27a to
e9dafa8
Compare
Add --walltime-unwinding-mode (CODSPEED_WALLTIME_UNWINDING_MODE) to choose the call-stack unwinding for both walltime profilers, perf and samply. It accepts fp, dwarf, or dwarf,<bytes>, where <bytes> sets the DWARF stack sample size. --perf-unwinding-mode / CODSPEED_PERF_UNWINDING_MODE stays as a hidden, deprecated alias with the same values so existing setups keep working; the new option wins when both are set. perf: an explicit value replaces the unwinding inferred from the command, and a warning is logged when it differs from the suggested setting for Java, Go, or Python. samply: on Linux, forward the options as --unwinding-mode and --stack-size.
Bump samply-codspeed to the version that adds --unwinding-stack-size and pass the size under that name. Add an executor test that records with an explicit DWARF stack size through the bundled samply.
e9dafa8 to
f77fdc8
Compare
Summary
--walltime-unwinding-mode/CODSPEED_WALLTIME_UNWINDING_MODEand--walltime-stack-sample-size/CODSPEED_WALLTIME_STACK_SAMPLE_SIZE.--perf-unwinding-mode/CODSPEED_PERF_UNWINDING_MODEas a hidden, deprecated alias. The new option wins when both are set.--unwinding-modeand--unwinding-stack-size.Notes