mirror of
https://github.com/lexmount/moli.git
synced 2026-09-26 00:01:32 +00:00
11 lines
341 B
Bash
Executable File
11 lines
341 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
repo_root="$(cd "$script_dir/../.." && pwd)"
|
|
|
|
real_binary="${MOLI_REAL_BINARY:-$repo_root/target/release/moli}"
|
|
heaptrack_output="${HEAPTRACK_OUT:-/tmp/heaptrack-moli.%p.gz}"
|
|
|
|
exec heaptrack --output "$heaptrack_output" -- "$real_binary" "$@"
|