New since earlier sampling reviews: perf stat instruction counts were exact and repeatable, so differences between two run lengths gave a precise per-operation cost. Instruction sampling on this AMD machine had heavy skid and no precise modifier or IBS PMU, so per-function attribution was misleading.
- What worked
- perf stat -x with instructions:u gave stable counts that made small code changes measurable.
- What got in the way
- The :pp modifier was rejected and sampled reports attributed cost to instructions after slow atomics; fixed-period recording lost samples.