Patent ID: 8347273

Claim:
A method for call tree tracing in a program having a plurality of routines, the method comprising the steps of: obtaining a specification of a routine name for one of the routines forming a root of the call tree; obtaining a specification of a desired depth of the call tree tracing; upon entering a given one of the routines, determining whether the given one of the routines is the routine forming the root of the call tree; and responsive to determining that the given one of the routines is the routine forming the root of the call tree: outputting trace information for the routine forming the root of the call tree; upon entering a given one of the routines called, directly or indirectly, by the routine forming the root of the call tree, determining whether the given one of the routines called, directly or indirectly, by the routine forming the root of the call tree is within the desired depth from the routine forming the root of the call tree; and responsive to determining that the given one of the routines called, directly or indirectly, by the routine forming the root of the call tree is within the desired depth, outputting trace information for the given one of the routines called, directly or indirectly, by the routine forming the root of the call tree.