1 example for perf
# Build with perf then run program under reporter:
# -g flag collects graph info on processor
perf record -g ./myprogram
# then view report:
perf report --stdio
# Build with perf then run program under reporter:
# -g flag collects graph info on processor
perf record -g ./myprogram
# then view report:
perf report --stdio