linux/tools/perf/scripts/python/bin/flamegraph-record

#!/bin/bash
perf record -g "$@"