Method and apparatus for tracing execution of computer programming code using dynamic trace enablement
Abstract
A computer program is traced by associating a trigger with at least one code location, and upon encountering the trigger during execution, selectively enabling trace data collection data at subsequent traceable events. Preferably, collection of trace data is enabled only for procedure instances active (i.e., currently executing or on the call stack) at the time that the trigger is encountered. Preferably, a special environmental flag is set on encountering the trigger, saved in each current stack frame, reset on calling any new procedure, and restored from the stack on return from a procedure. Collection of trace data on a traceable event (such as an explicit trace statement in the code) is conditioned on the state of the special environmental flag.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 18.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for tracing execution of a computer program, comprising the steps of: associating a trigger with a triggering event occurring during execution of said computer program; responsive to occurrence of said triggering event during execution of an instance of a procedure of said computer program, enabling a trigger-based tracing for a subset of procedure instances upon subsequent occurrence of a traceable event during execution of said computer program, making a determination whether to collect trace data, said determination being based at least in part on whether said trigger based tracing
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗