perf Command Examples

Framework for Linux performance counter measurements. More information: https://perf.wiki.kernel.org.

perf stat {{gcc hello.c}}

sudo perf top

sudo perf record {{command}}

sudo perf record -p {{pid}}

sudo perf report