System and method for tracking callback functions for error identification
AssigneeTwitter, Inc.
InventorMatthew Massicotte
Life of this patent
Estimating the term…
Abstract
A system and method for tracking callback functions for error identification is provided. Prior to a function calling a callback function, it records information relating to the back trace of function(s) that called the callback in a set of state information. In the event of an error condition, the state information may be examined to provide additional information for debugging purposes.
Claims20
A computer implemented method comprising:
- executing, by a processor, an application that includes at least a first function;
- invoking the first function to create a first class function, the first class function to be submitted to at least one other function of the application for execution at a later point in time;
- storing program flow information that includes at least a first function identifier of the first function;
- and
- in response to invocation by the at least one other function, executing the first class function;
- incurring an error condition associated with the first class function after invocation by the at least one other function;
- and
- utilizing the program flow information to determine that the first function created the first class function.
A non-transitory computer readable medium comprising instructions configured to execute on one or more computer processors to enable the one or more computer processors to:
- execute an application that includes at least a first function;
- invoke the first function to create a first class function, the first class function to be submitted to at least one other function of the application for execution at a later point in time;
- store program flow information that includes at least a first function identifier of the first function;
- execute the first class function in response to invocation by the at least one other function;
- incur an error condition associated with the first class function after invocation by the at least one other function;
- and
- utilize the program flow information to determine that the first function created the first class function.
A system comprising:
- a processor of a computing device operatively interconnected with storage of the computing device, the processor configured to:
- execute an application that includes at least a first function;
- invoke the first function to create a first class function, the first class function to be submitted to at least one other function of the application for execution at a later point in time;
- store, in the storage, program flow information that includes at least a first function identifier of the first function;
- execute the first class function in response to invocation by the at least one other function;
- incur an error condition associated with the first class function after invocation by the at least one other function;
- and
- utilize the program flow information to determine that the first function created the first class function.
Dependencies are inferred from the claim text.