Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.

Commit f64c920

Browse files
committed
doc: add profile and heap to help
1 parent 759f187 commit f64c920

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/internal/inspect_repl.js

+9
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,15 @@ repl Enter a debug repl that works like exec
6767
6868
scripts List application scripts that are currently loaded
6969
scripts(true) List all scripts (including node-internals)
70+
71+
profile Start CPU profiling session.
72+
profileEnd Stop current CPU profiling session.
73+
profiles Array of completed CPU profiling sessions.
74+
profiles[n].save(filepath = 'node.cpuprofile')
75+
Save CPU profiling session to disk as JSON.
76+
77+
takeHeapSnapshot(filepath = 'node.heapsnapshot')
78+
Take a heap snapshot and save to disk as JSON.
7079
`.trim();
7180

7281
const FUNCTION_NAME_PATTERN = /^(?:function\*? )?([^(\s]+)\(/;

0 commit comments

Comments
 (0)