-
Notifications
You must be signed in to change notification settings - Fork 30.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cli: add --prof flag description to node --help command #20845
Conversation
doc/api/cli.md
Outdated
@@ -240,6 +240,13 @@ resolving relative paths. | |||
|
|||
See `--preserve-symlinks` for more information. | |||
|
|||
### `--prof` | |||
<!-- YAML | |||
added: v5.2.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct...? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know the version it was introduced in, but it is much older than that. The flag already exists in 0.10.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just checked and the log file is generated from v.2.0.0 on.
doc/api/cli.md
Outdated
added: v5.2.0 | ||
--> | ||
|
||
Generate v8 profiler output. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: v8
-> V8
.
doc/node.1
Outdated
@@ -149,6 +149,9 @@ Instructs the module loader to preserve symbolic links when resolving and cachin | |||
.It Fl -preserve-symlinks-main | |||
Instructs the module loader to preserve symbolic links when resolving and caching the main module. | |||
. | |||
.It Fl -prof | |||
Generate v8 profiler output. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto)
src/node.cc
Outdated
@@ -3234,6 +3234,7 @@ static void PrintHelp() { | |||
" --preserve-symlinks-main preserve symbolic links when resolving\n" | |||
" the main module\n" | |||
#endif | |||
" --prof generate v8 profiler output\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto. And maybe you can fix the same typo on the next line?
127aad4
to
e3cc05e
Compare
@vsemozhetbyt Thanks for the review, I fixed typo and rebased commits. |
This comment has been minimized.
This comment has been minimized.
Rerun failed tasks: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: probably should update the commit message to Fixes: https://github.com/nodejs/node/issues/16459
, otherwise I think the issue won't be closed.
e3cc05e
to
1e17a91
Compare
@mmarchini |
Fixes: #16459 PR-URL: #20845 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Matheus Marchini <[email protected]> Reviewed-By: James M Snell <[email protected]>
Landed in 9461f32 with corrected metadata and revised commit message |
Thank you node committers! |
Fixes: #16459 PR-URL: #20845 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Matheus Marchini <[email protected]> Reviewed-By: James M Snell <[email protected]>
As suggested at #16459 (comment), I added description about
--flag
option intonode --help
command.Closes: #16459
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes[ ] tests and/or benchmarks are includedI think it's necessary for this change