Skip to content

Commit b0023d7

Browse files
ohbaryetargos
authored andcommitted
src,doc: add doc of --prof flag to help command
Fixes: #16459 PR-URL: #20845 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Matheus Marchini <matheus@sthima.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent ea702e2 commit b0023d7

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

doc/api/cli.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,13 @@ resolving relative paths.
240240

241241
See `--preserve-symlinks` for more information.
242242

243+
### `--prof`
244+
<!-- YAML
245+
added: v2.0.0
246+
-->
247+
248+
Generate V8 profiler output.
249+
243250
### `--prof-process`
244251
<!-- YAML
245252
added: v5.2.0

doc/node.1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ Instructs the module loader to preserve symbolic links when resolving and cachin
149149
.It Fl -preserve-symlinks-main
150150
Instructs the module loader to preserve symbolic links when resolving and caching the main module.
151151
.
152+
.It Fl -prof
153+
Generate V8 profiler output.
154+
.
152155
.It Fl -prof-process
153156
Process V8 profiler output generated using the V8 option
154157
.Fl -prof .

src/node.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3248,7 +3248,8 @@ static void PrintHelp() {
32483248
" --preserve-symlinks-main preserve symbolic links when resolving\n"
32493249
" the main module\n"
32503250
#endif
3251-
" --prof-process process v8 profiler output generated\n"
3251+
" --prof generate V8 profiler output\n"
3252+
" --prof-process process V8 profiler output generated\n"
32523253
" using --prof\n"
32533254
" --redirect-warnings=file\n"
32543255
" write warnings to file instead of\n"

0 commit comments

Comments
 (0)