Run-time wait tracing using byte code insertion
Abstract
Methods, systems, computer program products, and methods of doing business whereby programmatically-generated byte code insertion is used to perform run-time tracing of code that potentially encounters a wait during execution. The byte code insertion is performed at load time, and inserts byte codes before and after a located (potential) wait point. The inserted byte code functions to gather execution statistics, such as a time stamp before invoking a located wait point and a time stamp after invoking the located wait point. Preferred embodiments allow this tracing to be selectively activated/deactivated.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 11 · Forward citations: 27.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of tracing run-time waits to measure time spent waiting due to synchronization, comprising steps of: programmatically performing code analysis prior to execution of an application, further comprising steps of: comparing byte code of the application to stored patterns that describe known wait points where code may wait to get a monitor that synchronizes access to a shared resource, thereby locating one or more locations in the code where a wait due to synchronization may occur at run time; and recording the located locations; and programmatically instrumenting the located locations, du
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 27 total)
References Cited — Backward Prior Art (11)
Non-Patent Literature (2)
- Chandler, Ajay et al., "Mobile Code Security by Java Bytecode Instrumentation", IEEE, Jul. 2001: 27-40.
- Havelund, Klaus et al., "Monitoring Java Programs with Java PathExplorer", Elsevier Science B.V., 2001 (all pages).