Linux C++: how to profile time wasted due to cache misses?

后端 未结 9 1603
一向
一向 2020-12-01 02:33

I know that I can use gprof to benchmark my code.

However, I have this problem -- I have a smart pointer that has an extra level of indirection (think of it as a prox

9条回答
  •  日久生厌
    2020-12-01 03:24

    It depends on what OS and CPU you are using. E.g. for Mac OS X and x86 or ppc, Shark will do cache miss profiling. Ditto for Zoom on Linux.

提交回复
热议问题