leaks
Search a process's memory for unreferenced malloc buffers. tldr-pages
On macOS
macOS
Examine a running process for leaks by its name
leaks process_nameIdentifyExamine a running process for leaks by its PID
leaks process_idIdentifyLaunch a command and check for leaks when it exits
leaks -atExit -- commandIdentifyEnable backtraces for each leak by setting the MallocStackLogging environment variable
MallocStackLogging=YES leaks process_nameIdentifyDisplay results in the classic list format instead of a tree
leaks -list process_nameIdentifyGroup leaked objects by type
leaks -groupByType process_nameIdentifySave the memory state to a memory graph file for later analysis
leaks process_name -outputGraph path/to/file.memgraphIdentifyExamine a previously saved memory graph file
leaks path/to/file.memgraphIdentify