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 0551f7ebb8..734e80d558 100644
--- a/doc/api/cli.md
+++ b/doc/api/cli.md
@@ -728,6 +728,7 @@ V8 options that are allowed are:
- `--abort-on-uncaught-exception`
- `--max-old-space-size`
- `--perf-basic-prof`
+- `--perf-basic-prof-only-functions`
- `--perf-prof`
- `--stack-trace-limit`
diff --git a/src/node_options.cc b/src/node_options.cc
index 20caac5c37..7b678e549a 100644
--- a/src/node_options.cc
+++ b/src/node_options.cc
@@ -317,6 +317,10 @@ PerIsolateOptionsParser::PerIsolateOptionsParser() {
kAllowedInEnvironment);
AddOption("--max-old-space-size", "", V8Option{}, kAllowedInEnvironment);
AddOption("--perf-basic-prof", "", V8Option{}, kAllowedInEnvironment);
+ AddOption("--perf-basic-prof-only-functions",
+ "",
+ V8Option{},
+ kAllowedInEnvironment);
AddOption("--perf-prof", "", V8Option{}, kAllowedInEnvironment);
AddOption("--stack-trace-limit", "", V8Option{}, kAllowedInEnvironment);
diff --git a/test/parallel/test-cli-node-options.js b/test/parallel/test-cli-node-options.js
index 4ff63009a7..1554e80c0b 100644
--- a/test/parallel/test-cli-node-options.js
+++ b/test/parallel/test-cli-node-options.js
@@ -38,6 +38,7 @@ expect('--trace-event-file-pattern {pid}-${rotation}.trace_events ' +
if (!common.isWindows) {
expect('--perf-basic-prof', 'B\n');
+ expect('--perf-basic-prof-only-functions', 'B\n');
}
if (common.isLinux && ['arm', 'x64'].includes(process.arch)) {