Skip to content

Commit 414475d

Browse files
Update heapSnapshot.md
1 parent b01d6f5 commit 414475d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

docs/reference/control/heapSnapshot.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
## heapSnapshot
2-
<img width="735" height="64" alt="Screenshot 2026-04-20 8 11 43 PM" src="https://github.com/user-attachments/assets/8c2c1839-b218-48cb-bc91-f9db9e8ce768" />
3-
2+
43
Record a heap snapshot to debug memory leaks.
54
The heap snap snapshot is is a complete serialized representation of the runtime’s heap at a specific moment in execution.
5+
``` sig
6+
control.heapSnapshot();
7+
```
8+
Logged in the DevTools logging system.
69

710
## Example
811
Get objects in the heap every 2 seconds.

0 commit comments

Comments
 (0)