PerfCounters source code