Performance counter helpers