title: Linux C++: how to profile time wasted due to cache misses?
body: <p>I know that I can use gprof to benchmark my code.</p>
  <p>However, I have this problem -- I have a smart pointer that has an extra level of indirection (think of it as a proxy object).</p>
  <p>As a result, I have this extra layer that effects pretty much all functions, and screws with caching.</p>
  <p>Is there a way to measure the time my CPU wastes due to cache misses?</p>