Measure number of cache misses and references