Patent ID: 9081629
Filing Date: 2015-07-14
Classification: G06F

Abstract:
1. A method for factoring out event counts for a routine executing on a thread in a thread state targeted for elimination of event counts comprising: accumulating a per thread event count dynamically for a routine executing on a thread; responsive to detecting the routine executing on the thread entering the thread state targeted for elimination of event counts, storing an event count indicating a last saved count of an event counter in a control block associated with the thread; responsive to detecting an exiting of the thread state, reading a current value of the event count and utilizing a difference between the current value of the event count and the last saved event count in the control block associated with the thread to calculate a per thread count of the event during the thread state; and reducing the per thread count of the event from an accumulated event count for the event for the routine according to the difference.