From d482d61b9fd9997367d0dd27e3b90c662064ae3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= <kdy1997.dev@gmail.com> Date: Tue, 21 Dec 2021 16:09:19 +0900 Subject: [PATCH] chore(scripts): Use `cargo profile instruments` instead of `cargo instruments` (#3086) --- crates/swc/scripts/instrument.sh | 4 ++++ crates/swc_bundler/scripts/instrument.sh | 2 +- crates/swc_ecma_codegen/scripts/instrument.sh | 2 +- crates/swc_ecma_minifier/scripts/instrument.sh | 2 +- crates/swc_ecma_parser/scripts/instrument.sh | 2 +- scripts/instrument.sh | 4 ---- 6 files changed, 8 insertions(+), 8 deletions(-) create mode 100755 crates/swc/scripts/instrument.sh delete mode 100755 scripts/instrument.sh diff --git a/crates/swc/scripts/instrument.sh b/crates/swc/scripts/instrument.sh new file mode 100755 index 000000000000..c64ddf76e2b2 --- /dev/null +++ b/crates/swc/scripts/instrument.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +set -eu + +cargo profile instruments --release -t time --bench typescript --features concurrent,tracing/release_max_level_info $@ \ No newline at end of file diff --git a/crates/swc_bundler/scripts/instrument.sh b/crates/swc_bundler/scripts/instrument.sh index fad3b6040809..a6d44f909066 100755 --- a/crates/swc_bundler/scripts/instrument.sh +++ b/crates/swc_bundler/scripts/instrument.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash set -eu -cargo instruments --release -t time --example bundle --features concurrent,tracing/release_max_level_info -- $@ \ No newline at end of file +cargo profile instruments --release -t time --example bundle --features concurrent,tracing/release_max_level_info -- $@ \ No newline at end of file diff --git a/crates/swc_ecma_codegen/scripts/instrument.sh b/crates/swc_ecma_codegen/scripts/instrument.sh index 618d877810ee..a36446950f47 100755 --- a/crates/swc_ecma_codegen/scripts/instrument.sh +++ b/crates/swc_ecma_codegen/scripts/instrument.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash set -eu -cargo instruments --release -t time --example gen --features tracing/release_max_level_info -- $@ \ No newline at end of file +cargo profile instruments --release -t time --example gen --features tracing/release_max_level_info -- $@ \ No newline at end of file diff --git a/crates/swc_ecma_minifier/scripts/instrument.sh b/crates/swc_ecma_minifier/scripts/instrument.sh index c30c2539dbc1..be86a47ff8cd 100755 --- a/crates/swc_ecma_minifier/scripts/instrument.sh +++ b/crates/swc_ecma_minifier/scripts/instrument.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash set -eu -cargo instruments --release -t time --open --features tracing/release_max_level_info --example perf -- $@ \ No newline at end of file +cargo profile instruments --release -t time --open --features tracing/release_max_level_info --example perf -- $@ \ No newline at end of file diff --git a/crates/swc_ecma_parser/scripts/instrument.sh b/crates/swc_ecma_parser/scripts/instrument.sh index 2e66eab6ca2b..284b8a693259 100755 --- a/crates/swc_ecma_parser/scripts/instrument.sh +++ b/crates/swc_ecma_parser/scripts/instrument.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash set -eu -cargo instruments --release -t time --features log/release_max_level_info --example perf \ No newline at end of file +cargo profile instruments --release -t time --features log/release_max_level_info --example perf \ No newline at end of file diff --git a/scripts/instrument.sh b/scripts/instrument.sh deleted file mode 100755 index 13b16b4f45ba..000000000000 --- a/scripts/instrument.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash -set -eu - -cargo instruments --release -t time --bench typescript --features concurrent,tracing/release_max_level_info $@ \ No newline at end of file