Measure the processor events using perf?
perf record -o /tmp/perf.data --call-graph dwarf --event instructions,cpu-cycles,cache-misses,branches,branch-misses --aio --sample-cpu <exec>
Resources
Visually analyze the output of perf?
sudo hotspot
Resources