×

On demand tracing of application code execution

  • US 8,832,504 B2
  • Filed: 04/24/2013
  • Issued: 09/09/2014
  • Est. Priority Date: 05/19/2011
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method for tracing execution of application code, comprising:

  • executing the application code comprising a plurality of trace statements encoded within;

    in response to executing a current trace statement within the application code, writing the current trace statement to a circular trace buffer and determining whether a pre-defined trigger event has occurred by the computing device; and

    in response to determining that the trigger event has occurred,outputting the current trace statement from the circular trace buffer by the computing device;

    outputting from the circular trace buffer a number of trace statements before the trigger event according to a pre-defined before-trigger-event parameter; and

    outputting from the circular trace buffer a number of trace statements after the trigger event until a trigger end event has occurred according to a pre-defined after-trigger-event parameter by the computing device,wherein the trigger end event comprises a trace end event, wherein the trace end event is defined by parameters comprising a name of a variable in the application code to be used as the trace end event, a value for the variable, and an operator defining a relationship between the variable and the value for the variable,wherein the outputting from the circular trace buffer the number of trace statements after the trigger event until the trigger end event has occurred by the computing device according to the pre-defined after-trigger-event parameter comprises;

    determining whether the variable in the application code satisfies the operator and the value by the computing device; and

    in response to determining that the variable in the computer program satisfies the operator and the value by the computing device, terminating the outputting of the trace statements from the circular buffer by the computing device.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×