diff --git a/README.md b/README.md index c55de76..fda3045 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,12 @@ GitHub Actions for running [CodSpeed](https://codspeed.io) in your CI. # Set to "true" to enable. Requires runner v5.2.0 or later. # Defaults to "false". 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: "" ``` # Example usage diff --git a/action.yml b/action.yml index e48a98d..dcc0ac2 100644 --- a/action.yml +++ b/action.yml @@ -97,6 +97,12 @@ inputs: Requires runner v5.2.0 or later. Defaults to 'false'. required: false + experimental-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'. + required: false + config: 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." required: false @@ -302,6 +308,10 @@ runs: RUNNER_ARGS+=(--simulation-track-subprocess) fi + if [ "${{ inputs.experimental-memory-track-physical }}" = "true" ]; then + RUNNER_ARGS+=(--experimental-memory-track-physical) + fi + if [ -n "$CODSPEED_INPUT_RUN" ]; then RUNNER_ARGS+=(-- "$CODSPEED_INPUT_RUN") fi