Skip to content

Commit

Permalink
doc: add document for profiling and heap snapshot
Browse files Browse the repository at this point in the history
PR-URL: #46787
Reviewed-By: Rafael Gonzaga <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
cola119 authored and targos committed Mar 13, 2023
1 parent 2c4f670 commit 00edc50
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/api/debugger.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,13 @@ debug>
* `repl`: Open debugger's repl for evaluation in debugging script's context
* `exec expr`, `p expr`: Execute an expression in debugging script's context and
print its value
* `profile`: Start CPU profiling session
* `profileEnd`: Stop current CPU profiling session
* `profiles`: List all completed CPU profiling sessions
* `profiles[n].save(filepath = 'node.cpuprofile')`: Save CPU profiling session
to disk as JSON
* `takeHeapSnapshot(filepath = 'node.heapsnapshot')`: Take a heap snapshot
and save to disk as JSON

### Execution control

Expand Down

0 comments on commit 00edc50

Please sign in to comment.