Skip to content

Commit ef38bcf

Browse files
committed
feat: add memory-track-physical experimental input
1 parent 373d686 commit ef38bcf

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ GitHub Actions for running [CodSpeed](https://codspeed.io) in your CI.
9797
# Set to "true" to enable. Requires runner v5.2.0 or later.
9898
# Defaults to "false".
9999
simulation-track-subprocess: ""
100+
101+
# [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+
memory-track-physical: ""
100106
```
101107
102108
# Example usage

‎action.yml‎

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

100+
memory-track-physical:
101+
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'.
104+
required: false
105+
100106
config:
101107
description: "Path to a CodSpeed configuration file (codspeed.yml). If not specified, the runner will look for a codspeed.yml file in the repository root."
102108
required: false
@@ -302,6 +308,10 @@ runs:
302308
RUNNER_ARGS+=(--simulation-track-subprocess)
303309
fi
304310
311+
if [ "${{ inputs.memory-track-physical }}" = "true" ]; then
312+
RUNNER_ARGS+=(--memory-track-physical)
313+
fi
314+
305315
if [ -n "$CODSPEED_INPUT_RUN" ]; then
306316
RUNNER_ARGS+=(-- "$CODSPEED_INPUT_RUN")
307317
fi

0 commit comments

Comments
 (0)