ON DEMAND TRACING OF APPLICATION CODE EXECUTION
First Claim
1. A method for tracing execution of application code, comprising:
- during the execution of the application code, writing trace statements to a circular trace buffer by a computing device;
determining whether a pre-defined trigger event has occurred by the computing device;
in response to determining that the trigger event has occurred, outputting one or more trace statements in the circular trace buffer by the computing device according to pre-defined trace parameters;
determining whether a trigger end event has occurred by the computing device; and
in response to determining that the trigger end event has occurred, terminating the outputting of the trace statements by the computing device.
2 Assignments
0 Petitions
Accused Products
Abstract
On demand tracing of application code execution includes: during the execution of the application code, writing trace statements to a circular trace buffer (at a selected and potentially variable detail level); determining whether a pre-defined trigger event has occurred; in response to determining that the trigger event has occurred, outputting one or more trace statements in the circular trace buffer according to pre-defined trace parameters; determining whether a trigger end event has occurred; and in response to determining that the trigger end event has occurred, terminating the outputting of the trace statements. The trigger event and the trigger end event may be defined by names of application code variables, values for the variables, and operators to be used. The trigger end event may further be defined by a time duration for which trace statements are to be outputted, or a number of trace statements to be outputted.
-
Citations
9 Claims
-
1. A method for tracing execution of application code, comprising:
-
during the execution of the application code, writing trace statements to a circular trace buffer by a computing device; determining whether a pre-defined trigger event has occurred by the computing device; in response to determining that the trigger event has occurred, outputting one or more trace statements in the circular trace buffer by the computing device according to pre-defined trace parameters; determining whether a trigger end event has occurred by the computing device; and in response to determining that the trigger end event has occurred, terminating the outputting of the trace statements by the computing device. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A method for tracing execution of application code, comprising:
-
during the execution of the application code, writing trace statements to a circular trace buffer by a computing device; determining whether a pre-defined trigger event has occurred by the computing device; in response to determining that the trigger event has occurred, outputting one or more trace statements in the circular trace buffer by the computing device according to pre-defined trace parameters; determining whether a trigger end event has occurred by the computing device, comprising; determining whether a variable in the application code satisfies an operator and a value defined in the pre-defined trace parameters by the computing device; determining whether a time duration defined in the pre-defined trace parameters for which the outputting of the trace statements is to continue has elapsed by the computing device;
ordetermining whether the outputting of a number of outputted trace statements defined in the pre-defined trace parameters from after the trigger event has occurred by the computing device; and in response to determining that the trigger end event has occurred, terminating the outputting of the trace statements by the computing device.
-
Specification