Method for modifying a class file to monitor data flow
Abstract
A method for modifying a class file to monitor data flow is provided. The method includes selecting ( 401 ) one or more methods in the class file and adding ( 206, 209 ) one or more lines of code to report incoming arguments and return values, if any, in the selected method. The incoming arguments and return values are reported ( 405, 410 ) to an instrumentation interface which may be an instrumentation class defining methods for each type of argument in the method. The one or more lines of code pass the incoming arguments and return values to the appropriate instrumentation class method. The method may produce a profile of data flow including a record of incoming arguments and return values, if any, for one or more methods in a class file. The record can include data describing the types and values of arguments and return values and their distribution.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 15 · Forward citations: 28.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method for modifying a class file to monitor data flow, comprising the steps of: interrogating the class file, before performing any modifications, in order to obtain a count of arguments and a type of each argument used by the class file; instrumenting performance monitoring instructions or references into the class file to monitor the performance of the class file, by performing at least the following: inserting into a constant pool for a class, one or more references to a set of methods in an instrumentation class; adding one or more lines of code to report incoming a
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 28 total)
References Cited — Backward Prior Art (15)
Non-Patent Literature (2)
- BIT: A Tool for Instrumenting Java Bytecodes (1997) pp. 1-3 (http://citeseer.nj.nec.com/lee97bit.html).
- Lance, Don et al. "Bytecode-based Java Program Analysis." ACM. 1999.