Patent ID: 8429621

Claim:
A method for component lock analysis, comprising integrating non-transitory computer readable storage medium embodying a computer readable program into a computing system, wherein the program in combination with the computing system performs the following: associating, by operation of one or more computer processors, a component with all locks configured for use with the component, the component and the component-associated locks configured for use by an operating system, the component comprising a subsystem of the operating system, the locks individually comprising locking code; initiating lock tracing for the component for a particular lock instance in a particular component code listing, the component code listing invoking a software module, the invoked software module initiating lock tracing in response to a comparison of: (1) a component type parameter associated with the particular lock instance, and (2) a value indicating a component currently selected for lock tracing, wherein the component type parameter and the value indicating the component currently selected for lock tracing are retrieved by the invoked software module; and in response to initiating lock tracing, instrumenting the particular lock instance with lock tracing program instructions by invoking a tracing module to obtain lock statistics, the lock statistics consisting of lock statistics associated with the particular lock instance.