Skip to content

Instantly share code, notes, and snippets.

@tkersey
Created January 23, 2024 18:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tkersey/f77bb20c88f12530b516e53d88d0bbd5 to your computer and use it in GitHub Desktop.
Save tkersey/f77bb20c88f12530b516e53d88d0bbd5 to your computer and use it in GitHub Desktop.
iOS Memory Deep Dive
  • vmmap --summary X.memgraph
  • vmmap X.memgraph | rg "MEMORY REGION NAME"
  • vmmap --verbose X.memgraph | rg "MEMORYREGION"
  • leaks --traceTree 0xSTARTINGMEMORYADDRESS
  • malloc_history X.memgraph --fullStacks 0xSTARTINGMEMORYADRESS
  • Other helpful commands
    • vmmap --pages X.memgraph
    • leaks X.memgraph
    • heap X.memgraph
    • heap X.memgraph -sortBySize
    • heap X.memgraph -addresses all | <classes-pattern>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment