Skip to content

Commit

Permalink
doc: add document for profiling and heap snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
cola119 authored and Trott committed Feb 22, 2023
1 parent 7a1d158 commit 1c5aa97
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 1c5aa97

Please sign in to comment.