1. A computer readable medium having computer-executable instructions for causing one or more programmable control devices to perform a method for analyzing code execution, the method comprising the steps of: displaying information pertaining to samples of function calls during execution of one or more processes on a computer system as a chronological chart of callstack depth versus sample number; and automatically identifying a function-call pattern indicative of non-optimal performance of at least one of the processes wherein the function-call pattern comprises at least two substantially similar structures.