You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding the get_heapsnapshot_dominators MCP tool to show the dominators
for a given node. In combination with get_heapsnapshot_retaining_paths
this should help understand what keeps an object reachable and thus
alive.
Co-authored-by: Dominik Inführ <dinfuehr@chromium.org>
Co-authored-by: Nicholas Roscino <nroscino@google.com>
@@ -493,6 +494,17 @@ in the DevTools Elements panel (if any).
493
494
494
495
---
495
496
497
+
### `get_heapsnapshot_dominators`
498
+
499
+
**Description:** Loads a memory heapsnapshot and returns the dominator chain for a specific node ID. This helps to identify which objects are keeping the target node alive. (requires flag: --memoryDebugging=true)
500
+
501
+
**Parameters:**
502
+
503
+
-**filePath** (string) **(required)**: A path to a .heapsnapshot file to read.
504
+
-**nodeId** (number) **(required)**: The node ID to get the dominator chain for.
505
+
506
+
---
507
+
496
508
### `get_heapsnapshot_edges`
497
509
498
510
**Description:** Loads a memory heapsnapshot and returns outgoing edges (references) for a specific node ID. (requires flag: --memoryDebugging=true)
'Loads a memory heapsnapshot and returns the dominator chain for a specific node ID. This helps to identify which objects are keeping the target node alive. (requires flag: --memoryDebugging=true)',
366
+
category: 'Memory',
367
+
args: {
368
+
filePath: {
369
+
name: 'filePath',
370
+
type: 'string',
371
+
description: 'A path to a .heapsnapshot file to read.',
372
+
required: true,
373
+
},
374
+
nodeId: {
375
+
name: 'nodeId',
376
+
type: 'number',
377
+
description: 'The node ID to get the dominator chain for.',
378
+
required: true,
379
+
},
380
+
},
381
+
},
363
382
get_heapsnapshot_edges: {
364
383
description:
365
384
'Loads a memory heapsnapshot and returns outgoing edges (references) for a specific node ID. (requires flag: --memoryDebugging=true)',
0 commit comments