Skip to content
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

--prof flag not documented in --help output #16459

Closed
jsha opened this issue Oct 24, 2017 · 11 comments
Closed

--prof flag not documented in --help output #16459

jsha opened this issue Oct 24, 2017 · 11 comments
Labels
cli Issues and PRs related to the Node.js command line interface. doc Issues and PRs related to the documentations. good first issue Issues that are suitable for first-time contributors. help wanted Issues that need assistance from volunteers or PRs that need help to proceed. question Issues that look for answers.

Comments

@jsha
Copy link
Contributor

jsha commented Oct 24, 2017

Steps to reproduce:

Run node --help

Expected result:

Output includes short documentation for --prof flag, as described at https://nodejs.org/en/docs/guides/simple-profiling/.

Actual result:

Output does not include that documentation (but does include documentation for --prof-process).

@bnoordhuis
Copy link
Member

The description from --prof-process hints at it: --profis a V8 flag listed under --v8-options.

@mscdex mscdex added cli Issues and PRs related to the Node.js command line interface. question Issues that look for answers. labels Oct 25, 2017
@Fishrock123
Copy link
Contributor

We could put something in like "if the option you are looking for is not here, try --v8-options". Thoughts?

@jsha
Copy link
Contributor Author

jsha commented Nov 2, 2017

In this case, I wasn't totally sure what option I was looking for; I was checking help to remind myself of the name. I think now that --prof is officially documented as the way to do profiling, it might be good to hoist it from the (mostly obscure) --v8-options.

Another possibility to make it more clear that there is additional help available would be to rename or alias --v8-options to --help-v8, or --help-all.

@apapirovski apapirovski added the help wanted Issues that need assistance from volunteers or PRs that need help to proceed. label Apr 13, 2018
@gireeshpunathil gireeshpunathil added the doc Issues and PRs related to the documentations. label May 16, 2018
@gireeshpunathil
Copy link
Member

@jsha - just wondering you want to put together a doc PR to this effect? let me know. Or else we could open this up for good-first-contribution too.

@jsha
Copy link
Contributor Author

jsha commented May 16, 2018 via email

@joyeecheung
Copy link
Member

Is --prof officially supported by V8? I am under the impression that only the CPU profiler is officially supported and thoroughly tested. cc @nodejs/v8

@hashseed
Copy link
Member

Yeah. --prof is somewhat of a grey area. We have some long term plans to fold it into a better way for logging/tracing.

@gireeshpunathil
Copy link
Member

so what is the recommendation here? document (--prof in Node) or leave it to status quo?

@jsha
Copy link
Contributor Author

jsha commented May 17, 2018 via email

@gireeshpunathil
Copy link
Member

Agreed - in addition, --prof currently provides vital diagnostic data for performance problem determination. Experimental or non-experimental, its value is great, and should not go under-utlized due to the under-documented nature of it.

Call for good first contributors!

@gireeshpunathil gireeshpunathil added the good first issue Issues that are suitable for first-time contributors. label May 17, 2018
@ohbarye
Copy link
Contributor

ohbarye commented May 20, 2018

May I work on this issue?

ohbarye added a commit to ohbarye/node that referenced this issue May 21, 2018
targos pushed a commit that referenced this issue May 25, 2018
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Issues and PRs related to the Node.js command line interface. doc Issues and PRs related to the documentations. good first issue Issues that are suitable for first-time contributors. help wanted Issues that need assistance from volunteers or PRs that need help to proceed. question Issues that look for answers.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants