| 1 | #!/bin/bash |
| 2 | # Copyright (c) Meta Platforms, Inc. and affiliates. |
| 3 | # |
| 4 | # This source code is licensed under the MIT license found in the |
| 5 | # LICENSE file in the root directory of this source tree. |
| 6 | |
| 7 | # Thin wrapper for the profiling script. |
| 8 | # |
| 9 | # Usage: bash compiler/scripts/profile-rust-port.sh [flags] |
| 10 | # Flags: --release, --json, --limit N |
| 11 | |
| 12 | set -eo pipefail |
| 13 | |
| 14 | REPO_ROOT="$(cd "$(dirname "$0")/../.." && pwd)" |
| 15 | |
| 16 | exec npx tsx "$REPO_ROOT/compiler/scripts/profile-rust-port.ts" "$@" |