Skip to content

Commit fcb5871

Browse files
fix
1 parent c66a0ec commit fcb5871

4 files changed

Lines changed: 36 additions & 15 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,11 +497,10 @@ If you run into any issues, checkout our [troubleshooting guide](./docs/troubles
497497
- **Emulation** (2 tools)
498498
- [`emulate`](docs/tool-reference.md#emulate)
499499
- [`resize_page`](docs/tool-reference.md#resize_page)
500-
- **Performance** (4 tools)
500+
- **Performance** (3 tools)
501501
- [`performance_analyze_insight`](docs/tool-reference.md#performance_analyze_insight)
502502
- [`performance_start_trace`](docs/tool-reference.md#performance_start_trace)
503503
- [`performance_stop_trace`](docs/tool-reference.md#performance_stop_trace)
504-
- [`take_memory_snapshot`](docs/tool-reference.md#take_memory_snapshot)
505504
- **Network** (2 tools)
506505
- [`get_network_request`](docs/tool-reference.md#get_network_request)
507506
- [`list_network_requests`](docs/tool-reference.md#list_network_requests)
@@ -512,6 +511,8 @@ If you run into any issues, checkout our [troubleshooting guide](./docs/troubles
512511
- [`list_console_messages`](docs/tool-reference.md#list_console_messages)
513512
- [`take_screenshot`](docs/tool-reference.md#take_screenshot)
514513
- [`take_snapshot`](docs/tool-reference.md#take_snapshot)
514+
- **Memory** (1 tools)
515+
- [`take_memory_snapshot`](docs/tool-reference.md#take_memory_snapshot)
515516

516517
<!-- END AUTO GENERATED TOOLS -->
517518

docs/tool-reference.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@
2222
- **[Emulation](#emulation)** (2 tools)
2323
- [`emulate`](#emulate)
2424
- [`resize_page`](#resize_page)
25-
- **[Performance](#performance)** (4 tools)
25+
- **[Performance](#performance)** (3 tools)
2626
- [`performance_analyze_insight`](#performance_analyze_insight)
2727
- [`performance_start_trace`](#performance_start_trace)
2828
- [`performance_stop_trace`](#performance_stop_trace)
29-
- [`take_memory_snapshot`](#take_memory_snapshot)
3029
- **[Network](#network)** (2 tools)
3130
- [`get_network_request`](#get_network_request)
3231
- [`list_network_requests`](#list_network_requests)
@@ -37,6 +36,8 @@
3736
- [`list_console_messages`](#list_console_messages)
3837
- [`take_screenshot`](#take_screenshot)
3938
- [`take_snapshot`](#take_snapshot)
39+
- **[Memory](#memory)** (1 tools)
40+
- [`take_memory_snapshot`](#take_memory_snapshot)
4041

4142
## Input automation
4243

@@ -276,16 +277,6 @@
276277

277278
---
278279

279-
### `take_memory_snapshot`
280-
281-
**Description:** Capture a heap snapshot of the currently selected page. Use to analyze the memory distribution of JavaScript objects and debug memory leaks.
282-
283-
**Parameters:**
284-
285-
- **filePath** (string) **(required)**: A path to a .heapsnapshot file to save the heapsnapshot to.
286-
287-
---
288-
289280
## Network
290281

291282
### `get_network_request`
@@ -397,3 +388,15 @@ in the DevTools Elements panel (if any).
397388
- **verbose** (boolean) _(optional)_: Whether to include all possible information available in the full a11y tree. Default is false.
398389

399390
---
391+
392+
## Memory
393+
394+
### `take_memory_snapshot`
395+
396+
**Description:** Capture a heap snapshot of the currently selected page. Use to analyze the memory distribution of JavaScript objects and debug memory leaks.
397+
398+
**Parameters:**
399+
400+
- **filePath** (string) **(required)**: A path to a .heapsnapshot file to save the heapsnapshot to.
401+
402+
---

src/bin/cliDefinitions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ export const commands: Commands = {
583583
take_memory_snapshot: {
584584
description:
585585
'Capture a heap snapshot of the currently selected page. Use to analyze the memory distribution of JavaScript objects and debug memory leaks.',
586-
category: 'Performance',
586+
category: 'Memory',
587587
args: {
588588
filePath: {
589589
name: 'filePath',

src/telemetry/tool_call_metrics.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,5 +565,22 @@
565565
"argType": "number"
566566
}
567567
]
568+
},
569+
{
570+
"name": "get_memory_snapshot_details",
571+
"args": [
572+
{
573+
"name": "file_path_length",
574+
"argType": "number"
575+
},
576+
{
577+
"name": "page_idx",
578+
"argType": "number"
579+
},
580+
{
581+
"name": "page_size",
582+
"argType": "number"
583+
}
584+
]
568585
}
569586
]

0 commit comments

Comments
 (0)