File: instruments.sh

package info (click to toggle)
rust-swc-core 58.0.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 63,936 kB
  • sloc: javascript: 1,115; xml: 538; sh: 400; makefile: 35; python: 5
file content (15 lines) | stat: -rwxr-xr-x 376 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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:-}