Skip to content

Commit 759ae97

Browse files
committed
feat: add disable-memory-capture-stack and disable-memory-track-physical inputs
Memory stack capture and physical memory tracking are enabled by default on newer runners. Replace the experimental opt-in inputs with opt-out inputs that pass --disable-memory-capture-stack and --disable-memory-track-physical to the runner.
1 parent fe42bc0 commit 759ae97

2 files changed

Lines changed: 24 additions & 9 deletions

File tree

‎README.md‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,16 @@ GitHub Actions for running [CodSpeed](https://codspeed.io) in your CI.
9999
simulation-track-subprocess: ""
100100

101101
# [OPTIONAL]
102-
# [Experimental] Track physical (resident) memory in `memory` mode. Set to "true" to
103-
# enable. Requires runner v5.3.0 or later.
104-
# Defaults to "false".
105-
experimental-memory-track-physical: ""
102+
# Disable physical (resident) memory tracking in `memory` mode.
103+
# Set to "true" to disable. Enabled by default on supported runners.
104+
# Requires runner v5.4.0 or later.
105+
disable-memory-track-physical: ""
106+
107+
# [OPTIONAL]
108+
# Disable allocation call stack capture in `memory` mode.
109+
# Set to "true" to disable. Enabled by default on supported runners.
110+
# Requires runner v5.4.0 or later.
111+
disable-memory-capture-stack: ""
106112
```
107113
108114
# Outputs

‎action.yml‎

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,16 @@ inputs:
9797
Requires runner v5.2.0 or later. Defaults to 'false'.
9898
required: false
9999

100-
experimental-memory-track-physical:
100+
disable-memory-track-physical:
101101
description: |
102-
[Experimental] Track physical (resident) memory in `memory` mode. Set to 'true' to enable.
103-
Requires runner v5.3.0 or later. Defaults to 'false'.
102+
Disable physical (resident) memory tracking in `memory` mode. Set to 'true' to disable.
103+
Requires runner v5.4.0 or later. Defaults to 'false' (tracking enabled).
104+
required: false
105+
106+
disable-memory-capture-stack:
107+
description: |
108+
Disable allocation call stack capture in `memory` mode. Set to 'true' to disable.
109+
Requires runner v5.4.0 or later. Defaults to 'false' (capture enabled).
104110
required: false
105111

106112
config:
@@ -316,8 +322,11 @@ runs:
316322
RUNNER_ARGS+=(--simulation-track-subprocess)
317323
fi
318324
319-
if [ "${{ inputs.experimental-memory-track-physical }}" = "true" ]; then
320-
RUNNER_ARGS+=(--experimental-memory-track-physical)
325+
if [ "${{ inputs.disable-memory-track-physical }}" = "true" ]; then
326+
RUNNER_ARGS+=(--disable-memory-track-physical)
327+
fi
328+
if [ "${{ inputs.disable-memory-capture-stack }}" = "true" ]; then
329+
RUNNER_ARGS+=(--disable-memory-capture-stack)
321330
fi
322331
323332
if [ -n "$CODSPEED_INPUT_RUN" ]; then

0 commit comments

Comments
 (0)