Table of Contents What I’m doing What you’ll need Step 1: Install PCM Step 2: Using PCM’s CPU Counters in your code What I’m doing I needed to profile a C++ method for a graduate course I’m taking. More specifically, I wanted to be able to see memory access patterns and how the hit ratios for cache memory were affected by different coding strategies.