Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 00edc50

Browse filesBrowse files
cola119targos
authored andcommitted
doc: add document for profiling and heap snapshot
PR-URL: #46787 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 2c4f670 commit 00edc50
Copy full SHA for 00edc50

File tree

Expand file treeCollapse file tree

1 file changed

+7
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/debugger.md‎

Copy file name to clipboardExpand all lines: doc/api/debugger.md
+7Lines changed: 7 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,13 @@ debug>
202202
* `repl`: Open debugger's repl for evaluation in debugging script's context
203203
* `exec expr`, `p expr`: Execute an expression in debugging script's context and
204204
print its value
205+
* `profile`: Start CPU profiling session
206+
* `profileEnd`: Stop current CPU profiling session
207+
* `profiles`: List all completed CPU profiling sessions
208+
* `profiles[n].save(filepath = 'node.cpuprofile')`: Save CPU profiling session
209+
to disk as JSON
210+
* `takeHeapSnapshot(filepath = 'node.heapsnapshot')`: Take a heap snapshot
211+
and save to disk as JSON
205212

206213
### Execution control
207214

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.