Implement performance counters on Linux.