Patent ID: 7526754

Claim:
A method for assessing memory use of a software program, the method comprising: collecting records of memory allocations while running the program, the records indicating respective allocation points in the program, wherein collecting the records includes collecting stack traces at the allocation points; sorting the records according to the respective allocation points, wherein said sorting includes dynamically defining a first group of allocation points and a second group of allocation points based on total memory allocations associated with each allocation point, the allocation points in the first set being associated with higher total memory allocations; storing long stack traces, up to a first trace depth, for the allocation points in the first group and short stack traces, up to a second trace depth less than the first trace depth, for the allocation points in the second group; and retrieving and displaying the stored records so as to enable a user to observe totals of the memory allocations at the respective allocation points, wherein displaying the stored records includes displaying information regarding long stack traces for allocation points in the first group and short stack traces for allocation points in the second group.