|
|
|
|
|
by dragontamer
2611 days ago
|
|
That's true, but "perf" is more portable between platforms. For example, I can't use vTune at all, because I run Threadripper 1950x. Personally speaking, I use AMD uProf instead. Without knowing the guy's setup, "perf" is the most portable option. The processor-specific tools will be more accurate, but also more complicated. Its the Linux tool that tries to work across platforms: AMD, Intel, and even ARM platforms. --------- "Perf" will give you L1 / L2 cache hits, and accurate counts at that. The main issue is "branch prediction", which requires very complicated circuitry to really predict. You need to use Intel's trace analyzer for accurate branch prediction statistics. For AMD, you need to use instruction-based sampling in uProf for good branch prediction statistics. L1 / L2 cache stuff is the beginner level though, so Perf should be a good starting point in this whole mess. |
|