summaryrefslogtreecommitdiff
path: root/scripts/main.sh
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-02-12 11:50:26 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-02-12 16:19:06 -0700
commited69c917c47435007ad72dc83a2db31c19699846 (patch)
treeb06361fac5ae74630187c55c4174e8011256b398 /scripts/main.sh
parentea319c1b817e65ad0808f08343b3203e62ab15a9 (diff)
scripts/main.sh: Record cpu and allocs profiles
Diffstat (limited to 'scripts/main.sh')
-rwxr-xr-xscripts/main.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/main.sh b/scripts/main.sh
index 73eada7..365862f 100755
--- a/scripts/main.sh
+++ b/scripts/main.sh
@@ -16,6 +16,8 @@ run-btrfs-rec() {
command time --verbose \
./bin/btrfs-rec \
--pv="$image" \
+ --profile.cpu="${tgt%.*}.cpu.pprof" \
+ --profile.allocs="${tgt%.*}.allocs.pprof" \
"$@"
} >"$tgt" 2> >(tee >&2 "$log")
}