Friday, May 6, 2016

stringdups: Identify Duplicate Strings or Other Objects

stringdups (via David Smith):

stringdups examines the content of malloc blocks in the specified target process. For all blocks which have the same content, it shows a line with the number of such blocks, their total allocated size (the total size in the malloc heap, not just the specific size of their content), and the average allocated size.

If the MallocStackLogging environment variable was set when the target process was launched, stringdups also displays stack backtraces or call trees showing where all the blocks with a particular grouping of content were allocated.

Comments RSS · Twitter

Leave a Comment