Skip to content

src: fix --prof-process CLI argument handling - #22790

Closed
addaleax wants to merge 4 commits into
nodejs:masterfrom
addaleax:fix-prof-process
Closed

src: fix --prof-process CLI argument handling#22790
addaleax wants to merge 4 commits into
nodejs:masterfrom
addaleax:fix-prof-process

Conversation

@addaleax

@addaleaxaddaleax commented Sep 10, 2018

Copy link
Copy Markdown
Member

Make sure that options after --prof-process are not treated
as Node.js options.

Fixes: #22786

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Make sure that options after `--prof-process` are not treated
as Node.js options.
Fixes: nodejs#22786
@addaleax
addaleax requested a review from benglSeptember 10, 2018 10:09
@nodejs-github-botnodejs-github-bot added the c++ Issues and PRs that require attention from people who are familiar with C++. label Sep 10, 2018
@addaleaxaddaleax added the cli Issues and PRs related to the Node.js command line interface. label Sep 10, 2018
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@addaleax

Copy link
Copy Markdown
MemberAuthor

assert(logfile);

// Make sure that the --preprocess argument is passed through correctly.
const { stdout } = spawnSync(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a note here about any arguments accepted by deps/v8/tools/tickprocessor.js would do in case V8 removes that in the future?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, done (and also fixed CI a bit) :)

@mcollina

Copy link
Copy Markdown
Member

I can confirm this fixes the problem for 0x.

@mcollinamcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@addaleax

Copy link
Copy Markdown
MemberAuthor

@richardlau

Copy link
Copy Markdown
Member

I think we should note in https://github.com/nodejs/node/blob/master/doc/api/cli.md#--prof-process and https://github.com/nodejs/node/blob/master/doc/node.1 about the processing of subsequent options.

@addaleax

Copy link
Copy Markdown
MemberAuthor

@richardlau Would a follow-up PR be okay? I’d also like to make --prof-process --help work, and it would be good to be able to refer to that (I don’t think it has ever worked in Node.js)

@richardlau

Copy link
Copy Markdown
Member

Would a follow-up PR be okay? I’d also like to make --prof-process --help work, and it would be good to be able to refer to that (I don’t think it has ever worked in Node.js)

👍 Fine by me.

@mcollina

Copy link
Copy Markdown
Member

Can we fast-track this and getting it into a release asap?

@addaleaxaddaleax added the fast-track PRs that do not need to wait for 48 hours to land. label Sep 10, 2018
@targos

Copy link
Copy Markdown
Member

@mcollina Are you asking for a release sooner than usual (i.e. this week instead of the next one)?

@mcollina

Copy link
Copy Markdown
Member

If possible, yes. If no one is available to do it, it's not a big deal (next week is also ok). A significant number of flamegraph tools (not just clinic) are broken because of this.

@addaleaxaddaleax added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Sep 11, 2018
@addaleax

Copy link
Copy Markdown
MemberAuthor

@addaleax

Copy link
Copy Markdown
MemberAuthor

I pushed a commit to skip the test on AIX completely; not sure why it’s failing there. (/cc @nodejs/platform-aix)

CI: https://ci.nodejs.org/job/node-test-pull-request/17131/

@richardlau

Copy link
Copy Markdown
Member

I pushed a commit to skip the test on AIX completely; not sure why it’s failing there. (/cc @nodejs/platform-aix)

There's this comment in the tick-processor tests:

// TODO(mhdawson) Currently the test-tick-processor functionality in V8
// depends on addresses being smaller than a full 64 bits. AIX supports
// the full 64 bits and the result is that it does not process the
// addresses correctly and runs out of memory
// Disabling until we get a fix upstreamed into V8
if(common.isAIX)
common.skip('AIX address range too big for scripts.');

@addaleax

Copy link
Copy Markdown
MemberAuthor

@richardlau Okay, thanks – makes sense!

@targos

targos commented Sep 14, 2018

Copy link
Copy Markdown
Member

@targos

Copy link
Copy Markdown
Member

Landed in 23f8b02

@targostargos closed this Sep 16, 2018
targos pushed a commit that referenced this pull request Sep 16, 2018
Make sure that options after `--prof-process` are not treated
as Node.js options.
Fixes: #22786
PR-URL: #22790
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Bryan English <bryan@bryanenglish.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
targos pushed a commit that referenced this pull request Sep 16, 2018
Make sure that options after `--prof-process` are not treated
as Node.js options.
Fixes: #22786
PR-URL: #22790
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Bryan English <bryan@bryanenglish.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
@addaleax
addaleax deleted the fix-prof-process branch September 16, 2018 07:46
@targostargos mentioned this pull request Sep 18, 2018
targos pushed a commit that referenced this pull request Sep 19, 2018
Make sure that options after `--prof-process` are not treated
as Node.js options.
Fixes: #22786
PR-URL: #22790
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Bryan English <bryan@bryanenglish.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
targos pushed a commit that referenced this pull request Sep 20, 2018
Make sure that options after `--prof-process` are not treated
as Node.js options.
Fixes: #22786
PR-URL: #22790
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Bryan English <bryan@bryanenglish.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.c++Issues and PRs that require attention from people who are familiar with C++.cliIssues and PRs related to the Node.js command line interface.fast-trackPRs that do not need to wait for 48 hours to land.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--prof-process CLI args no longer work in 10.10.0

11 participants

@addaleax@nodejs-github-bot@mcollina@richardlau@targos@bengl@jasnell@cjihrig@joyeecheung@BridgeAR@trivikr