[go: up one dir, main page]

inferno 0.3.0

Rust port of the FlameGraph performance profiling tool suite
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash

set -eu -o pipefail

cargo build --release --bin inferno-collapse-perf
BIN="${CARGO_TARGET_DIR:-target}/release/inferno-collapse-perf"

(( maxsize = 100 * 1024 ))
for f in ./flamegraph/test/*.txt; do
	# only run benchmark on larger files
	filesize=$(stat -c%s "$f")
	if (( filesize > maxsize )); then
		echo "==>  $f  <=="
		hyperfine "$BIN --all $f" "./flamegraph/stackcollapse-perf.pl --all $f"
		echo
		echo
	fi
done