Skip to content

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

Description

@jsha

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).

Activity

  1. bnoordhuis commented on Oct 24, 2017

    @bnoordhuis
    Member

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

  2. added
    cliIssues and PRs related to the Node.js command-line interface.
    questionIssues asking questions about Node.js.
    on Oct 25, 2017
  3. Fishrock123 commented on Nov 2, 2017

    @Fishrock123
    Contributor

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

  4. jsha commented on Nov 2, 2017

    @jsha
    ContributorAuthor

    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.

  5. added
    help wantedIssues that need assistance from volunteers or PRs that need help to proceed.
    on Apr 13, 2018
  6. added
    docIssues and PRs related to Node.js documentation.
    on May 16, 2018
  7. gireeshpunathil commented on May 16, 2018

    @gireeshpunathil
    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.

  8. jsha commented on May 16, 2018

    @jsha
    ContributorAuthor
  9. joyeecheung commented on May 16, 2018

    @joyeecheung
    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

  10. hashseed commented on May 16, 2018

    @hashseed
    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.

  11. gireeshpunathil commented on May 17, 2018

    @gireeshpunathil
    Member

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

  12. jsha commented on May 17, 2018

    @jsha
    ContributorAuthor
  13. gireeshpunathil commented on May 17, 2018

    @gireeshpunathil
    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!

  14. ohbarye commented on May 20, 2018

    @ohbarye
    Contributor

    May I work on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliIssues and PRs related to the Node.js command-line interface.docIssues and PRs related to Node.js documentation.good first issueIssues that are suitable for first-time contributors.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.questionIssues asking questions about Node.js.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions