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
Copy file name to clipboardExpand all lines: docs/tool-reference.md
+4-6Lines changed: 4 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -546,9 +546,9 @@ in the DevTools Elements panel (if any).
546
546
-**filePath** (string) **(required)**: A path to a .heapsnapshot file to read.
547
547
-**nodeId** (number) **(required)**: The node ID to get outgoing edges for.
548
548
-**excludePrimitives** (boolean) _(optional)_: Whether to exclude primitive target nodes. Default is true.
549
-
-**minRetainedSize** (number) _(optional)_: Minimum retained size in bytes for target nodes.
550
549
-**pageIdx** (number) _(optional)_: The page index for pagination.
551
550
-**pageSize** (number) _(optional)_: The page size for pagination.
551
+
-**retainedSize** (string) _(optional)_: Inclusive retained size range (e.g. "1MB-2MB", "-1MB", or "1MB-") for target nodes. A single value is treated as a minimum. Currently, only the lower bound is applied.
552
552
-**sortBy** (enum: "retainedSize", "selfSize", "name") _(optional)_: Sort order for edges. Default is retainedSize.
553
553
554
554
---
@@ -603,21 +603,19 @@ in the DevTools Elements panel (if any).
603
603
604
604
### `query_heapsnapshot_objects`
605
605
606
-
**Description:** Loads a memory heapsnapshot and queries objects matching specific filters (className, propertyName, nodeType, minRetainedSize, maxRetainedSize, minSelfSize, isDetached, sortBy). (requires flag: --memoryDebugging=true)
606
+
**Description:** Loads a memory heapsnapshot and queries objects matching specific filters (className, propertyName, nodeType, retainedSize, selfSize, isDetached, sortBy). (requires flag: --memoryDebugging=true)
607
607
608
608
**Parameters:**
609
609
610
610
-**filePath** (string) **(required)**: A path to a .heapsnapshot file to read.
611
611
-**className** (string) _(optional)_: Optional regex or text matching object class name.
612
612
-**isDetached** (boolean) _(optional)_: Whether to filter for detached DOM nodes.
613
-
-**maxRetainedSize** (number) _(optional)_: Maximum retained size in bytes.
614
-
-**maxSelfSize** (number) _(optional)_: Maximum self size in bytes.
615
-
-**minRetainedSize** (number) _(optional)_: Minimum retained size in bytes.
616
-
-**minSelfSize** (number) _(optional)_: Minimum self size in bytes.
description: 'Minimum retained size in bytes for target nodes.',
521
+
retainedSize: {
522
+
name: 'retainedSize',
523
+
type: 'string',
524
+
description:
525
+
'Inclusive retained size range (e.g. "1MB-2MB", "-1MB", or "1MB-") for target nodes. A single value is treated as a minimum. Currently, only the lower bound is applied.',
description: `Capture a heap snapshot of the currently selected page. Use to analyze the memory distribution of JavaScript objects and debug memory leaks.`,
.describe('Sort order for edges. Default is retainedSize.'),
308
-
minRetainedSize: zod
309
-
.number()
310
-
.optional()
311
-
.describe('Minimum retained size in bytes for target nodes.'),
326
+
retainedSize: byteSizeRangeSchema(
327
+
'Inclusive retained size range (e.g. "1MB-2MB", "-1MB", or "1MB-") for target nodes. A single value is treated as a minimum. Currently, only the lower bound is applied.',
0 commit comments