Hacker News new | ask | show | jobs
by tempguy9999 2561 days ago
How would you know it's happening? How would you know it's not? How have you measured/looked?

I'm know little about this area, so I'm curious.

2 comments

Several popular profiler tools (valgrind, visual studio profiler, dtrace, perfmon) can track cache miss rates.
perf-tools are my favorite. The overhead is negligible, and thus any metrics you gather are very accurate. Valgrind is rarely useful, considering the execution time disadvantage.

  perf record -e icache.ifdata_stall ./test-program-binary
followed by

  perf report
or, for fancy viewing, use hotspot from KDAB.

This is on linux, btw, but it should work fine with wine.