System aware performance counters
First Claim
1. A method comprising:
- executing a predefined code segment of an application, the executing on a processor and including executing an instrumented thread included in the predefined code segment;
performing at least a first action associated with executing the instrumented thread in the predefined code segment, the performing the at least first action responsive to enabling a performance counter and registering the instrumented thread with a performance counter library;
starting the performance counter associated with the predefined code segment, the starting responsive to executing the instrumented thread;
pausing the execution of the predefined code segment;
pausing the performance counter responsive to pausing the executing of the predefined code segment;
performing at least a second action associated with pausing the executing of the predefined code segment, the performing the at least second action responsive to enabling the performance counter and registering the instrumented thread;
resuming the executing of the predefined code segment;
resuming the performance counter responsive to resuming the executing of the predefined code segment; and
performing at least a third action associated with resuming the executing of the predefined code segment, the performing the at least third action responsive to enabling the performance counter and registering the instrumented thread.
2 Assignments
0 Petitions
Accused Products
Abstract
System aware performance counters including a processor for performing a method that includes executing a predefined code segment of an application, the executing on a processor. The executing includes executing an instrumented thread included in the predefined code segment. The method includes performing a first action associated with executing the instrumented thread in the predefined code segment, and registering the instrumented thread. A performance counter associated with the predefined code segment is started. Also, the execution of the predefined code segment is paused and the performance counter is paused. The method further includes performing a second action associated with pausing the executing of the predefined code segment. The executing of the predefined code segment is resumed and the performance counter is resumed responsive to resuming the executing of the predefined code segment. Also, a third action associated with resuming executing the predefined code segment is performed.
27 Citations
21 Claims
-
1. A method comprising:
-
executing a predefined code segment of an application, the executing on a processor and including executing an instrumented thread included in the predefined code segment; performing at least a first action associated with executing the instrumented thread in the predefined code segment, the performing the at least first action responsive to enabling a performance counter and registering the instrumented thread with a performance counter library; starting the performance counter associated with the predefined code segment, the starting responsive to executing the instrumented thread; pausing the execution of the predefined code segment; pausing the performance counter responsive to pausing the executing of the predefined code segment; performing at least a second action associated with pausing the executing of the predefined code segment, the performing the at least second action responsive to enabling the performance counter and registering the instrumented thread; resuming the executing of the predefined code segment;
resuming the performance counter responsive to resuming the executing of the predefined code segment; andperforming at least a third action associated with resuming the executing of the predefined code segment, the performing the at least third action responsive to enabling the performance counter and registering the instrumented thread. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A system comprising a processor configured to perform a method comprising:
-
executing a predefined code segment of an application, the executing on a processor and including executing an instrumented thread included in the predefined code segment; performing at least a first action associated with executing the instrumented thread in the predefined code segment, the performing the at least first action responsive to enabling a performance counter and registering the instrumented thread with a performance counter library; starting the performance counter associated with the predefined code segment, the starting responsive to executing the instrumented thread; pausing the execution of the predefined code segment; pausing the performance counter responsive to pausing the executing of the predefined code segment; performing at least a second action associated with pausing the executing of the predefined code segment, the performing the at least second action responsive to enabling the performance counter and registering the instrumented thread; resuming the executing of the predefined code segment;
resuming the performance counter responsive to resuming the executing of the predefined code segment; andperforming at least a third action associated with resuming the executing of the predefined code segment, the performing the at least third action responsive to enabling the performance counter and registering the instrumented thread. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A computer program product comprising a non-transitory tangible storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising:
-
executing a predefined code segment of an application, the executing on a processor and including executing an instrumented thread included in the predefined code segment; performing at least a first action associated with executing the instrumented thread in the predefined code segment, the performing the at least first action responsive to enabling a performance counter and registering the instrumented thread with a performance counter library; starting the performance counter associated with the predefined code segment, the starting responsive to executing the instrumented thread;
pausing the execution of the predefined code segment;pausing the performance counter responsive to pausing the executing of the predefined code segment; performing at least a second action associated with pausing the executing of the predefined code segment, the performing the at least second action responsive to enabling the performance counter and registering the instrumented thread; resuming the executing of the predefined code segment;
resuming the performance counter responsive to resuming the executing of the predefined code segment; andperforming at least a third action associated with resuming the executing of the predefined code segment, the performing the at least third action responsive to enabling the performance counter and registering the instrumented thread. - View Dependent Claims (16, 17, 18, 19, 20, 21)
-
Specification