diff --git a/README.md b/README.md index fda3045..f35b976 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,12 @@ GitHub Actions for running [CodSpeed](https://codspeed.io) in your CI. # enable. Requires runner v5.3.0 or later. # Defaults to "false". experimental-memory-track-physical: "" + + # [OPTIONAL] + # [Experimental] Capture allocation call stacks in `memory` mode. Set to "true" to + # enable. Requires runner v5.4.0 or later. + # Defaults to "false". + experimental-memory-capture-stack: "" ``` # Example usage diff --git a/action.yml b/action.yml index dcc0ac2..c1e60c9 100644 --- a/action.yml +++ b/action.yml @@ -103,6 +103,12 @@ inputs: Requires runner v5.3.0 or later. Defaults to 'false'. required: false + experimental-memory-capture-stack: + description: | + [Experimental] Capture allocation call stacks in `memory` mode. Set to 'true' to enable. + Requires runner v5.4.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 @@ -311,6 +317,9 @@ runs: if [ "${{ inputs.experimental-memory-track-physical }}" = "true" ]; then RUNNER_ARGS+=(--experimental-memory-track-physical) fi + if [ "${{ inputs.experimental-memory-capture-stack }}" = "true" ]; then + RUNNER_ARGS+=(--experimental-memory-capture-stack) + fi if [ -n "$CODSPEED_INPUT_RUN" ]; then RUNNER_ARGS+=(-- "$CODSPEED_INPUT_RUN")