Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tenfingers
on Jan 2, 2014
|
parent
|
context
|
favorite
| on:
Memory cache optimizations
Do you know if the new "perf" tool can also be used for the same purpose?
minimax
on Jan 2, 2014
[–]
Yes you can use perf to profile on cache misses (perf record -e cache-misses).
mtanski
on Jan 3, 2014
|
parent
[–]
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: