Hacker News new | past | comments | ask | show | jobs | submit login

Do you know if the new "perf" tool can also be used for the same purpose?



Yes you can use perf to profile on cache misses (perf record -e cache-misses).


Not only that but you can annotate the source and see which function and which instruction (C or asm) caused it. This way you know exactly which field is the one causing cache misses.

Dito for branch miss-prediction.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: