Performance profiling with perf

The perf command in Linux gives you access to various tools integrated into the Linux kernel. These tools can help you collect and analyze the performance data about your program or system. The perf profiler is fast, lightweight, and precise.

To use the perf command requires the linux-tools package to be installed on your distro.