Apparatus and method for dynamic instrumenting of code to minimize system perturbation
Abstract
An apparatus and method are provided for the dynamic instrumentation of code to minimize system perturbation during tracing of the execution of the code. With the apparatus and method, “hot spots” in the execution of the code are dynamically determined during tracing of the execution of the code. These “hot spots” are dynamically instrumented, i.e. an event hook is inserted, to cause control to be passed to a handler that determines a caller of the “hot spot” method. The method that called the “hot spot” method, or “caller” method, is identified from a call stack and is dynamically instrumented for an appropriate metric so that the next time the calling method is executed, the dynamically inserted hooks are executed. The execution of the hooks in the caller method is continued for a predetermined period, e.g., number of invocations, to get an understanding of the caller method's characteristics. A list of callers of instrumented methods is maintained and used to determine one or more calling methods of the instrumented caller method. One or more of these calling methods may be instrumented and the hooks inserted in the instrumented caller method (called by the one or more calli
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 23 · Forward citations: 15.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer implemented method of instrumenting code for tracing of a program, comprising: identifying a hot spot method of the program executing on a processor; responsive to identifying the hot spot method, instrumenting the hot spot method; identifying a caller method that calls the hot spot method; responsive to identifying the caller method, instrumenting the caller method by inserting one or more hooks into the caller method; maintaining a list of callers of instrumented methods in a memory in communication with the processor; measuring at least one execution characteristic metric using t
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 15 total)
References Cited — Backward Prior Art (23)
Non-Patent Literature (4)
- "Proceedings of the Java Virtual Machine Research and Technology Symposium", USENIX, Apr. 2001, pp. 1-14.
- "The Java HotSpot Performance Engine Architecture", Apr. 1999, retrieved Nov. 23, 2005, pp. 1-6. http://java.sun.com/products/hotspot/whitepaper.html.
- Kazi et al., "JaViz: a client/server Java profiling tool", 2000, IBM Systems Journal vol. 39, No. 1, pp. 96-117.
- Merten et al., "A Hardware-Driven Profiling Scheme for Identifyiong Program Hot Spots to Support Runtime Optimization", IEEE, 1999, pp. 136-147.