Patent ID: 8539455

Claim:
A method of identifying a cycle of instructions in a program of instructions comprising: starting to execute a sequence of operations in response to said program of instructions; selecting a set of operations from said sequence of operations; recording memory usage information associated with respective operations of said set of operations; identifying a partial sequence of operations from said memory usage information; a cycle of instructions being a set of instructions corresponding to a cyclic set of operations of said partial sequence of operations that occur between a recurring operation and an immediately subsequent occurrence of said recurring operation, including said recurring operation; identifying a plurality of call stacks, each operation from the set of operations being associated with a call stack from the plurality of call stacks; separating a set of call stacks from the plurality of call stacks that are associated with said recurring operation; identifying and separating statistics associated with the set of call stacks; and annotating a source code associated with the program of instructions with the statistics, the cycle of instructions being selectively terminated in response to a part of a call stack from the plurality of call stacks associated with said immediately subsequent occurrence of said recurring operation being in common with a part of a call stack associated with an earlier occurrence of said recurring operation.