System and method for measuring code segment performance
Abstract
A system and methods are provided for inserting probe points into an executing program, and measuring the time spent traversing code paths from one probe point to any other probe point or some other performance metric (e.g., instructions executed, cache misses, memory addresses accessed). One method is implemented by inserting N probes. Each probe has a corresponding function configured to: retrieve the identifier and timestamp of the previous probe executed, calculate the time spent traversing the path from the previous probe to the current probe, and update a matrix of N×N elements, wherein each element corresponds to a path from one probe to another probe. After completion of the program, this matrix is useful for identifying code paths that are bottlenecks and hence candidates for optimization.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 22 · Forward citations: 12.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of monitoring performance of a program executing in a computer, comprising: installing a uniquely identifiable probe at each of N probe points (N≧2) by: copying an original instruction at the probe point to a corresponding probe function; modifying the original instruction path to branch to said probe function prior to the original instruction; and configuring said probe function to return to the original instruction path; and during execution of a first probe function corresponding to a first probe point: updating a first timestamp associated with the first probe point with a current
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (12 of 12 total)
References Cited — Backward Prior Art (22)
Non-Patent Literature (5)
- A Dual Viewpoint Sotware Test Tool, M.A. Hennell et al, Mar. 1995, pp. 101-104.
- An Extensible Probe Architecture for Network Protocol Performance Measurement, ACM, G. Robert Malan, et al., Oct. 1998, pp. 215-227.
- Automatic Insertion of Performance Instrumentation for Distributed Applications, Sarr Blumson et al, OSF, Feb. 7, 1995, pp. 3-23.
- IBM Technical Disclosure Bulletin, vol. 34, No. 7B, Dec. 1991, pp. 259-261.
- IDebug: An Advanced Debugging Framework for JAVA, J. R. Kinry et al, Sep. 1998, pp. 1-11.