diff --git a/doc/api/cli.md b/doc/api/cli.md index 04f4801c3d4c93..300e0182205810 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -714,6 +714,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[:…]` diff --git a/src/node_options.cc b/src/node_options.cc index 4494dda7d9a22b..0de5a0303fe170 100644 --- a/src/node_options.cc +++ b/src/node_options.cc @@ -304,6 +304,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 diff --git a/test/parallel/test-cli-node-options.js b/test/parallel/test-cli-node-options.js index 1554e80c0b8de0..8f65a8cb7e8121 100644 --- a/test/parallel/test-cli-node-options.js +++ b/test/parallel/test-cli-node-options.js @@ -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) {