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.
1 Assignment
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
25 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 computer program product for tracing execution of application code, the computer program product comprising:
a computer readable storage medium having computer readable program code embodied therewith, the computer readable program code configured to; write trace statements to a circular trace buffer during the execution of the application code; determine whether a pre-defined trigger event has occurred; in response to determining that the trigger event has occurred, output one or more trace statements in the circular trace buffer according to pre-defined trace parameters; determine whether a trigger end event has occurred; and in response to determining that the trigger end event has occurred, terminate the outputting of the trace statements. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
17. A system comprising:
-
a processor; a circular trace buffer; and a computer readable storage medium having computer readable program code embodied therewith, the computer readable program code configured to; write trace statements to a circular trace buffer during the execution of the application code; determine whether a pre-defined trigger event has occurred; in response to determining that the trigger event has occurred, output one or more trace statements in the circular trace buffer according to pre-defined trace parameters; determine whether a trigger end event has occurred; and in response to determining that the trigger end event has occurred, terminate the outputting of the trace statements. - View Dependent Claims (18, 19, 20, 21, 23, 24)
-
-
22. The system 17, wherein the pre-defined trace parameters comprise a traceTime parameter defining a time duration for which the outputting of the trace statements is to continue,
wherein the computer readable program code configured to determine whether the trigger end event has occurred and the terminate of the output of the trace statements in response to determining that the trace end event has occurred, are further configured to: -
determine whether the time duration defined by the traceTime parameter has elapsed; and in response to determining that the time duration defined by the traceTime parameter has elapsed, terminate the outputting of the trace statements.
-
-
25. 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