Abstract An improved method of tracing the paths used in execution of a computer program is disclosed. The method includes using the state of a single bit to denote the referencing of a trace point in the program. The trace points are logically located near the program branch points. One or more bit maps are arranged in a known state at the beginning of program execution and the state of a particular bit in one of the bit maps is set when the associated trace point is referenced. Each bit is associated with a particular trace point according to its position in the bit maps. After program execution, the bit maps are compared to the source listing to determine which trace points were referenced. The use of single bits to denote the referencing of trace points minimizes the degradation of performance efficiency of the target program. Because the bit maps are initialized to a known state at the beginning of each program execution and transferred to retentive storage at the end of each program execution, tracing occurs continuously. Tracing means embedded in a target program and operating according to the aforementioned tracing method, and a method of installing such embedded tracing capability in a target program, are also disclosed.
A computer implemented method of identifying the path used in execution of a target computer program having a plurality of embedded trace points, the method comprising the computer machine executed steps of: creating at least one bit map having a plurality of separately accessible bits, each of the bits logically associated with one of the trace points, such that there is a one-to-one correspondence of bits to said trace points, whereby each bit represents the status of the corresponding trace point; placing each of the bits in a known state; and setting the state of a bit to a referenced state when a respective logically associated trace point is referenced during a tracing interval, the state of that bit being set only one.
Claim 2
Dependent Claim
123 words
A computer implemented method of identifying the path used in execution of a target computer program having a plurality of embedded trace points, the method comprising the computer machine executed steps of: creating at least one bit map having a plurality of separately accessible bits, each of the bits logically associated with one of the trace points, such that there is a one-to-one correspondence of bits to said trace points, whereby each bit represents the status of the corresponding trace point; placing each of the bits in a known state; and setting the state of a bit to a referenced state when a respective logically associated trace point is referenced during a tracing interval, the state of that bit being set only one.
Claim 3
Dependent Claim
26 words
The computer implemented method of claim 1 further comprising the computer machine executed steps of repeating said creating, placing and setting steps at every tracing interval.