src: allow --perf-prof-unwinding-info in NODE_OPTIONS
PR-URL: https://github.com/nodejs/node/pull/25565 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
f5b9a782a9
commit
f265225c19
@ -730,6 +730,7 @@ V8 options that are allowed are:
|
||||
- `--perf-basic-prof`
|
||||
- `--perf-basic-prof-only-functions`
|
||||
- `--perf-prof`
|
||||
- `--perf-prof-unwinding-info`
|
||||
- `--stack-trace-limit`
|
||||
|
||||
### `NODE_PATH=path[:…]`
|
||||
|
@ -322,6 +322,10 @@ PerIsolateOptionsParser::PerIsolateOptionsParser() {
|
||||
V8Option{},
|
||||
kAllowedInEnvironment);
|
||||
AddOption("--perf-prof", "", V8Option{}, kAllowedInEnvironment);
|
||||
AddOption("--perf-prof-unwinding-info",
|
||||
"",
|
||||
V8Option{},
|
||||
kAllowedInEnvironment);
|
||||
AddOption("--stack-trace-limit", "", V8Option{}, kAllowedInEnvironment);
|
||||
|
||||
#ifdef NODE_REPORT
|
||||
|
@ -44,6 +44,7 @@ if (!common.isWindows) {
|
||||
if (common.isLinux && ['arm', 'x64'].includes(process.arch)) {
|
||||
// PerfJitLogger is only implemented in Linux.
|
||||
expect('--perf-prof', 'B\n');
|
||||
expect('--perf-prof-unwinding-info', 'B\n');
|
||||
}
|
||||
|
||||
if (common.hasCrypto) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user