Detection of method calls to streamline diagnosis of custom code through dynamic instrumentation
Abstract
A technique for analyzing software in which un-instrumented components can be discovered and dynamically instrumented during a runtime of the software. Initially, an application configured with a baseline set of instrumented components such as methods. As the application runs, performance data is gathered from the instrumentation, and it may be learned that the performance of some methods is an issue. To analyze the problem, any methods which are callable from a method at issue are discovered by inspecting the byte code of loaded classes in a JAVA Virtual Machine (JVM). Byte code of the class is parsed to identify opcodes which invoke byte code to call other methods. An index to an entry in a constants pool table is identified based on an opcode. A decision can then be made to instrument and/or report the discovered methods.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 45 · Forward citations: 8.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method, comprising: identifying a method to analyze in an application; determining a class of the method to analyze from among loaded classes in memory; loading a byte code representation of the class of the method to analyze from a resource location; parsing the byte code representation of the class of the method to analyze, the parsing identifies an instance of an invoke byte code in the byte code representation of the class of the method to analyze; based on the instance of the invoke byte code in the byte code representation of the class of the method to analyze, ide
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (8 of 8 total)
References Cited — Backward Prior Art (45)
Non-Patent Literature (5)
- Binder et al., "Advanced Java Bytecode Instrumentation," PPPJ 2007, Sep. 5-7, 2007, Lisboa, Portugal. Copyright 2007 ACM.
- Dmitriev, "Design of JFluid: A Profiling Technology and Tool Based on Dynamic Bytecode Instrumentation," SMLI TR-2003-125, Nov. 17, 2003, Sun Microsystems, Inc., pp. 1-19.
- European Office Action dated Jun. 12, 2013, European Patent Application No. 11 250 847.8-1951.
- Extended European Search Report dated Aug. 16, 2011, European Patent Application No. 11250520.1-1225.
- Extended European Search Report dated Dec. 19, 2011, European Patent Application No. 11250847.8.