Find ROOT CYCLE blocks in a .memgraph
findCyclesExtract root cycle blocks from .memgraph files as flattened chains, with optional class name filter for targeted inspection of retain cycles.
Instructions
[mg.memory] Extract just the ROOT CYCLE blocks from a .memgraph as flattened chains (depth + edge + retainKind + className + address). Optionally filter to cycles touching a specific class name (substring match). Use this when you want to inspect chains without the noise of standalone leaks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to a `.memgraph` file. | |
| className | No | Optional substring filter — only return cycles where this class name appears in the chain (e.g. "DetailViewModel"). | |
| maxDepth | No | Truncate chains beyond this depth (default 10). | |
| verbosity | No | Class-name verbosity. `compact` shortens SwiftUI generic names aggressively; `full` returns demangled names verbatim. | compact |