Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,16 @@ GitHub Actions for running [CodSpeed](https://codspeed.io) in your CI.
simulation-track-subprocess: ""

# [OPTIONAL]
# [Experimental] Track physical (resident) memory in `memory` mode. Set to "true" to
# enable. Requires runner v5.3.0 or later.
# Defaults to "false".
experimental-memory-track-physical: ""
# Disable physical (resident) memory tracking in `memory` mode.
# Set to "true" to disable. Enabled by default on supported runners.
# Requires runner v5.4.0 or later.
disable-memory-track-physical: ""

# [OPTIONAL]
# Disable allocation call stack capture in `memory` mode.
# Set to "true" to disable. Enabled by default on supported runners.
# Requires runner v5.4.0 or later.
disable-memory-capture-stack: ""
```

# Example usage
Expand Down
19 changes: 14 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,16 @@ inputs:
Requires runner v5.2.0 or later. Defaults to 'false'.
required: false

experimental-memory-track-physical:
disable-memory-track-physical:
description: |
[Experimental] Track physical (resident) memory in `memory` mode. Set to 'true' to enable.
Requires runner v5.3.0 or later. Defaults to 'false'.
Disable physical (resident) memory tracking in `memory` mode. Set to 'true' to disable.
Requires runner v5.4.0 or later. Defaults to 'false' (tracking enabled).
required: false

disable-memory-capture-stack:
description: |
Disable allocation call stack capture in `memory` mode. Set to 'true' to disable.
Requires runner v5.4.0 or later. Defaults to 'false' (capture enabled).
required: false

config:
Expand Down Expand Up @@ -308,8 +314,11 @@ runs:
RUNNER_ARGS+=(--simulation-track-subprocess)
fi

if [ "${{ inputs.experimental-memory-track-physical }}" = "true" ]; then
RUNNER_ARGS+=(--experimental-memory-track-physical)
if [ "${{ inputs.disable-memory-track-physical }}" = "true" ]; then
RUNNER_ARGS+=(--disable-memory-track-physical)
fi
if [ "${{ inputs.disable-memory-capture-stack }}" = "true" ]; then
RUNNER_ARGS+=(--disable-memory-capture-stack)
fi

if [ -n "$CODSPEED_INPUT_RUN" ]; then
Expand Down
Loading