File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ # #
3+ # # Usage:
4+ # # ./scripts/profile/instruments.sh <crate> <benchmark> <test_name>
5+ # #
6+ # # - test_name is optional. If not provided, all tests will be profiled.
7+ # #
8+ # # Example:
9+ # # ./scripts/profile/instruments.sh swc_ecma_parser parser cal
10+ # #
11+
12+ set -eu
13+ export RUST_LOG=off
14+
15+ ddt profile instruments cargo -t time -p $1 --bench $2 --profile bench -- --bench ${3:- }
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ # #
3+ # # Usage:
4+ # # ./scripts/profile/samply.sh <crate> <benchmark> <test_name>
5+ # #
6+ # # - test_name is optional. If not provided, all tests will be profiled.
7+ # #
8+ # # Example:
9+ # # ./scripts/profile/samply.sh swc_ecma_parser parser cal
10+ # #
11+
12+ set -eu
13+ export RUST_LOG=off
14+
15+ ddt profile samply cargo -p $1 --bench $2 --profile bench -- --bench ${3:- }
You can’t perform that action at this time.
0 commit comments