Framework for Linux performance counter measurements. More information: https://perf.wiki.kernel.org.
perf stat gcc hello.c
sudo perf top
perf.data
:sudo perf record command
perf.data
:sudo perf record -p pid
perf.data
(created by perf record
) and display the profile:sudo perf report