Skip to content

cli: --perf-prof only works on Linux - #31892

Closed
codebytere wants to merge 1 commit into
nodejs:masterfrom
codebytere:perf-prof-linux
Closed

cli: --perf-prof only works on Linux#31892
codebytere wants to merge 1 commit into
nodejs:masterfrom
codebytere:perf-prof-linux

Conversation

@codebytere

Copy link
Copy Markdown
Member

--perf-prof-related flags have been removed in V8 on non-linux devices, and so we should note that in testing here as well as in docs.

See:

This broke in Electron, which is how i discovered it.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
@codebytere
codebytere requested a review from BridgeAR February 21, 2020 01:36
@gireeshpunathil

Copy link
Copy Markdown
Member

they (v8) did have a (documented?) promise that they would consider Node's compatibility as a major factor while implementing features?

@codebytere

Copy link
Copy Markdown
Member Author

@gireeshpunathil i'm pretty sure they don't consider this an issue with compat considering Node.js was piping straight through to V8's own bespoke option; we also already gate some --perf-prof options to linux, as you can see in the testfile, owing to similar changes upstream.

@mmarchini

Copy link
Copy Markdown
Contributor

--perf-prof doesn't make much sense on outside of Linux, as it generates a jitdump file.

--perf-basic-prof on the other hand could be used on other platforms, since it is just a text file (I have used it on OS X in the past). Well, that's not really a Node.js issue though. I'll get in touch with V8 about that.

@codebytere

Copy link
Copy Markdown
Member Author

thanks @mmarchini 🙇‍♀

@gireeshpunathil

Copy link
Copy Markdown
Member

ok, thanks @mmarchini, that will really help!

for the context, my use case is here: https://github.com/nodejs/diagnostics/tree/master/documentation/profiling - attempt to document diagnostic best practices around profiling. These are aimed at user-journey driven, endorsed by node project, and planned to be supported for long term.

as that is a conversation with v8, and this PR is just documenting the code behavior that was uncovered in the field, it looks good to me!

@codebytere

Copy link
Copy Markdown
Member Author

Landed in 72b6cea

@codebytere codebytere closed this Feb 23, 2020
@codebytere
codebytere deleted the perf-prof-linux branch February 23, 2020 18:10
codebytere added a commit that referenced this pull request Feb 23, 2020
PR-URL: #31892
Reviewed-By: Matheus Marchini <mat@mmarchini.me>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
codebytere added a commit that referenced this pull request Feb 27, 2020
PR-URL: #31892
Reviewed-By: Matheus Marchini <mat@mmarchini.me>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
@codebytere codebytere mentioned this pull request Feb 29, 2020
codebytere added a commit that referenced this pull request Mar 15, 2020
PR-URL: #31892
Reviewed-By: Matheus Marchini <mat@mmarchini.me>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
codebytere added a commit that referenced this pull request Mar 17, 2020
PR-URL: #31892
Reviewed-By: Matheus Marchini <mat@mmarchini.me>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
@codebytere codebytere mentioned this pull request Mar 17, 2020
codebytere added a commit that referenced this pull request Mar 30, 2020
PR-URL: #31892
Reviewed-By: Matheus Marchini <mat@mmarchini.me>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
codebytere added a commit to electron/electron that referenced this pull request Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants