Yesterday we talked about perf
. Let's start using perf
!
I learned how to make flame graphs with perf
today and it is THE BEST. I found this because Graydon Hoare pointed me to Brendan Gregg's excellent page on how to use perf.
Wait up! What's perf
? I've talked about strace
a lot before (in Debug your programs like they're closed source). strace
lets you see which system calls a program is calling. But what if you wanted to know
- how many CPU instructions it ran?
- How many L1 cache misses there were?