summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/api/cli.md1
-rw-r--r--src/node_options.cc4
-rw-r--r--test/parallel/test-cli-node-options.js1
3 files changed, 6 insertions, 0 deletions
diff --git a/doc/api/cli.md b/doc/api/cli.md
index 734e80d558..5e817eaa1d 100644
--- a/doc/api/cli.md
+++ b/doc/api/cli.md
@@ -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[:…]`
diff --git a/src/node_options.cc b/src/node_options.cc
index 7b678e549a..e68487a2bf 100644
--- a/src/node_options.cc
+++ b/src/node_options.cc
@@ -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
diff --git a/test/parallel/test-cli-node-options.js b/test/parallel/test-cli-node-options.js
index 1554e80c0b..8f65a8cb7e 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) {