-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed
Labels
cliIssues and PRs related to the Node.js command line interface.Issues and PRs related to the Node.js command line interface.feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.
Description
Profiling Node.js programs which spawn another Node.js processes using Linux prof is unnecessarily hard: new processes use executable from the parent process, so it is not possible to add a shell wrapper around Node to add --perf-prof
to a subprocess, one has to find all the places where subprocesses are spawned and add the argument there.
NODE_OPTIONS
is perfect for this task (just run the top-level process with it and all subtree will emit profiling data), but it does not support --perf-prof
or --perf-basic-prof
at the moment.
Please add it.
mmarchini, sushain97 and kirillgroshkov
Metadata
Metadata
Assignees
Labels
cliIssues and PRs related to the Node.js command line interface.Issues and PRs related to the Node.js command line interface.feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.