feat: enable rss tracking + memory flamegraphs by default - #553
not-matthias merged 2 commits into
Conversation
|
Merging this PR will not alter performance
|
Physical memory tracking and allocation stack capture in memory mode are no longer experimental and are enabled by default. Opt out with the new --disable-memory-track-physical / --disable-memory-capture-stack flags (env: CODSPEED_DISABLE_MEMORY_TRACK_PHYSICAL, CODSPEED_DISABLE_MEMORY_CAPTURE_STACK). The --experimental-memory-track-physical and --experimental-memory-capture-stack flags still work but are hidden and warn that they are deprecated; disable flags take precedence when both are set.
The deprecated --experimental-memory-track-physical and --experimental-memory-capture-stack flags were parsed as plain bools and then ignored, so the old opt-out via a falsey env value (CODSPEED_MEMTRACK_TRACK_PHYSICAL=0) silently enabled tracking instead. Both flags are now Option<bool> so unset, enabled, and explicitly disabled are distinguishable. resolve_memory_track_physical() and resolve_memory_capture_stack() combine them with the new --disable-memory-track-physical / --disable-memory-capture-stack flags: any explicit opt-out wins.
e16c32c to
a15fad1
Compare
No description provided.