an event occurring in a graphics pipeline is detected and counted at the location of its occurrence using an event detector and a local counter . the event count maintained by the local counter is reported asynchronously to a global counter . the global counter is configured to be of higher precision than the local counter and is positioned at a place that is convenient for reporting the events , e . g ., at the end of the graphics pipeline .