System and method for providing a watchdog timer to enable collection of crash data
First Claim
Patent Images
1. A system comprising:
- a computer processor;
a source thread of an application configured to initiate a predefined operation, wherein the predefined operation is associated with an operating system timeout period;
a watchdog thread associated with the application and configured to execute on the computer processor to enable the computer processor to;
periodically sample state information relating to the application;
determine, prior to completion of the predefined operation and prior to expiration of the operating system timeout period, that a predefined watchdog timeout period is expired, wherein the predefined watchdog timeout period is less than the operation system timeout period;
invoke a crash function in response to determining that the predefined watchdog timeout period is expired; and
store at least a portion of the sampled state information.
3 Assignments
0 Petitions
Accused Products
Abstract
A system and method for providing a watchdog timer to enable collection of crash data is provided. Upon execution of certain operations, a source thread of an application initiates a watchdog thread that periodically sample state of data relating to the application. Should the operation not complete within a watchdog timeout period, the watchdog thread invokes a crash function to collect additional state data. At least a portion of the state data is stored for later analysis and debugging.
15 Citations
23 Claims
-
1. A system comprising:
-
a computer processor; a source thread of an application configured to initiate a predefined operation, wherein the predefined operation is associated with an operating system timeout period; a watchdog thread associated with the application and configured to execute on the computer processor to enable the computer processor to; periodically sample state information relating to the application; determine, prior to completion of the predefined operation and prior to expiration of the operating system timeout period, that a predefined watchdog timeout period is expired, wherein the predefined watchdog timeout period is less than the operation system timeout period; invoke a crash function in response to determining that the predefined watchdog timeout period is expired; and store at least a portion of the sampled state information. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A method comprising:
-
initiating a source thread and a watchdog thread associated with an application; initiating a predefined operation of the application by the source thread, the predefined operation being associated with an operating system timeout period; periodically sampling state information relating to the application during execution of the watchdog thread; determining, by the watchdog thread executing on a computer processor, that a predefined watchdog timeout period is expired prior to expiration of the operating system timeout period, wherein the predefined watchdog timeout period is less than the operation system timeout period; invoking, by the watchdog thread executing on the computer processor, a crash function in response to the predefined operation not completing within the predefined watchdog timeout period; and storing at least a portion of the sampled state information. - View Dependent Claims (12, 13)
-
-
14. A non-transitory computer readable medium comprising computer readable program code for:
-
initiating a source thread and a watchdog thread that are associated with an application; initiating a predefined operation associated with the application by the source thread, the predefined operation been associated with an operating system timeout; periodically sampling state information relating to the application during execution of the watchdog thread; determining, by the watchdog thread executing on a computer processor, that a predefined watchdog timeout period is expired prior to expiration of the operating system timeout, wherein the predefined watchdog timeout period is less than the operation system timeout period; invoking, by the watchdog thread executing on the computer processor, a crash function in response to the predefined operation not completing within the predefined watchdog timeout period; and storing at least a portion of the sampled state information. - View Dependent Claims (15, 16, 17, 18, 19, 20, 21, 22, 23)
-
Specification