Skip to content

Commit dd4518a

Browse files
committed
src: allow --perf-prof-unwinding-info in NODE_OPTIONS
1 parent 1c49ced commit dd4518a

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

doc/api/cli.md

+1
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,7 @@ V8 options that are allowed are:
729729
- `--perf-basic-prof`
730730
- `--perf-basic-prof-only-functions`
731731
- `--perf-prof`
732+
- `--perf-prof-unwinding-info`
732733
- `--stack-trace-limit`
733734

734735
### `NODE_PATH=path[:…]`

src/node_options.cc

+4
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,10 @@ PerIsolateOptionsParser::PerIsolateOptionsParser() {
294294
V8Option{},
295295
kAllowedInEnvironment);
296296
AddOption("--perf-prof", "", V8Option{}, kAllowedInEnvironment);
297+
AddOption("--perf-prof-unwinding-info",
298+
"",
299+
V8Option{},
300+
kAllowedInEnvironment);
297301
AddOption("--stack-trace-limit", "", V8Option{}, kAllowedInEnvironment);
298302

299303
#ifdef NODE_REPORT

test/parallel/test-cli-node-options.js

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ if (!common.isWindows) {
4444
if (common.isLinux && ['arm', 'x64'].includes(process.arch)) {
4545
// PerfJitLogger is only implemented in Linux.
4646
expect('--perf-prof', 'B\n');
47+
expect('--perf-prof-unwinding-info', 'B\n');
4748
}
4849

4950
if (common.hasCrypto) {

0 commit comments

Comments
 (0)