Call stack sampling for threads having latencies exceeding a threshold
AssigneeInternational Businesss Machines Corporation
InventorsScott Thomas Jones, Frank Eliot Levine
Life of this patent
Estimating the term…
Abstract
A computer implemented method, apparatus, and computer usable program code for sampling call stack information. An accumulated latency time is monitored for a set of threads executing in a data processing system. The call stack information is obtained for the thread in response to a thread in the set of threads having an associated accumulated latency exceeding a threshold.
Claims23
A computer implemented method of sampling call stack information, the computer implemented method comprising:
- monitoring an accumulated latency time for each thread in a set of threads while executing in a data processing system;
- responsive to a thread in the set of threads having an associated accumulated latency exceeding a threshold, obtaining the call stack information for the thread, wherein the call stack information includes for each thread elapsed time, execution time, and previous latency;
- and
- constructing a call tree from the call stack information by monitoring method and function entries and exits, wherein the call tree includes nodes comprising call stack information and latency information associated with a particular thread for a method or a function.
A data processing system comprising:
- a bus;
- a communications unit connected to the bus;
- a storage device connected to the bus, wherein the storage device includes program code;
- and
- a processor unit connected to the bus, wherein the processor unit executes the program code to monitor an accumulated latency time for each thread in a set of threads while executing in a data processing system;
- obtain call stack information for the thread in response to a thread in the set of threads having an associated accumulated latency exceeding a threshold, wherein the call stack information includes for each thread elapsed time, execution time, and previous latency;
- and construct a call tree from the call stack information by monitoring method and function entries and exits, wherein the call tree includes nodes comprising call stack information and latency information associated with a particular thread for a method or a function.
A computer program product for sampling call stack information, the computer program product comprising:
- a computer recordable storage media;
- program code, stored on the computer recordable media, for monitoring an accumulated latency time for each thread in a set of threads while executing in a data processing system;
- and
- program code, stored on the computer recordable media, responsive to a thread in the set of threads having an associated accumulated latency exceeding a threshold, for obtaining the call stack information for the thread wherein the call stack information includes for each thread elapsed time, execution time, and previous latency;
- and
- program code, stored on the computer recordable media, for constructing a call tree from the call stack information by monitoring method and function entries and exits, wherein the call tree includes nodes comprising call stack information and latency information associated with a particular thread for a method or function.
Dependencies are inferred from the claim text.