Files
Donny/강동윤andGitHub d3b0d1be15 chore: Add a script to profile performance (#11235)
**Description:**

The usage documentation is in the script file.
2025-11-05 17:56:10 +09:00

15 lines
376 B
Bash
Executable File

#!/usr/bin/env bash
##
## Usage:
## ./scripts/profile/instruments.sh <crate> <benchmark> <test_name>
##
## - test_name is optional. If not provided, all tests will be profiled.
##
## Example:
## ./scripts/profile/instruments.sh swc_ecma_parser parser cal
##
set -eu
export RUST_LOG=off
ddt profile instruments cargo -t time -p $1 --bench $2 --profile bench -- --bench ${3:-}