← ClaudeAtlas

ios-memgraph-analysislisted

Use when capturing or analyzing an iOS .memgraph, especially when the task mentions a memory leak, heap growth, persistent memory increase, ownership path, or matched-capture comparison with Apple CLI tools. Covers unambiguous Simulator capture, leaks/heap/vmmap/malloc_history evidence, raw artifact preservation, and same-flow verification. Use debugging-instruments for interactive Xcode Memory Graph, Instruments, generic retain-cycle inspection, or LLDB work.
thiennc-tesoglobal/ios-skills · ★ 3 · AI & Automation · score 66
Install: claude install-skill thiennc-tesoglobal/ios-skills
# iOS Memgraph Analysis Use memory graphs to prove why memory survives a defined lifetime boundary. Separate unreachable leaks from reachable growth, preserve raw tool output, and verify the same app-owned type and ownership path after a fix. ## Contents - [Boundary](#boundary) - [Evidence Model](#evidence-model) - [Workflow](#workflow) - [Ownership Decisions](#ownership-decisions) - [Common Mistakes](#common-mistakes) - [Review Checklist](#review-checklist) - [References](#references) ## Boundary This skill owns `.memgraph` capture and command-line ownership/growth analysis. Use the Memory Graph Debugger or Instruments when their interactive graph and allocation timeline are the primary task. Use source review for a suspected closure capture only after runtime evidence identifies the lifetime or path. ## Evidence Model Do not collapse these conditions: - **Unreachable leak:** allocated memory no longer has a path from a live root. An isolated strong cycle can be unreachable and still consume memory. - **Reachable but abandoned state:** a live root still retains objects the user flow no longer needs. `leaks` may correctly report zero. - **Expected cache or pool:** memory survives intentionally and must be judged by its bound, eviction behavior, and pressure response. - **Heap regression or fragmentation:** footprint grows because more/larger allocations persist or dirty pages are poorly utilized, without a leak. Apple's leak scanner uses conservative pointer