CPU performance statistics using hardware counters