#!/usr/bin/env bash
set -euo pipefail

input_file="$1"
output_file="$2"

perf script --input="$input_file" \
  | c++filt \
  | "third_party/FlameGraph/stackcollapse-perf.pl" > "$output_file"
