stringdups(1) | General Commands Manual | stringdups(1) |
stringdups
—
Identify duplicate strings or other objects in malloc
blocks of a target process
stringdups |
[-minimumCount count]
[-stringsOnly ] [-nostacks ]
[-callTrees ]
[-invertCallTrees ] pid |
partial-executable-name |
memory-graph-file |
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.
stringdups
requires one argument -- either
the process ID or the full or partial executable name of the process to
examine, or the pathname of a memory graph file generated by
leaks.
When generating a memory graph with
leaks
for use with
stringdups
it is necessary to use the
-fullContent
argument to include labels describing
the contents of memory.
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.
stringdups
gathers the content of blocks
of various types including:
stringdups
shows the
symbol name of the code block (^) that this storage is associated with. If
debug information is available, the source path and line number of the
code block are also shown.-minimumCount
count-stringsOnly
-nostacks
-callTrees
-invertCallTrees
-callTrees
except that the call trees are
printed from hottest to coldest stack frame, so the leaf malloc call
appears first.heap(1), leaks(1), malloc_history(1), vmmap(1), DevToolsSecurity(1)
July 2, 2016 | macOS 14.6 |