From f0de081d3c7229ab44b5b3d8f19ae67dccdd800d Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Fri, 19 Apr 2019 22:32:06 +0800 Subject: [PATCH] squash! inspector: split --cpu-prof-path to --prof-dir and --cpu-prof-name --- doc/api/cli.md | 30 +++++++++++++++--------------- doc/node.1 | 16 ++++++++-------- src/env-inl.h | 22 ++++------------------ src/env.cc | 18 ++++++++++++++++++ src/env.h | 8 ++++---- src/inspector_profiler.cc | 2 +- src/node.cc | 2 +- src/node_options.cc | 8 ++++---- src/node_options.h | 2 +- test/sequential/test-cpu-prof.js | 24 ++++++++++++------------ 10 files changed, 68 insertions(+), 64 deletions(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index 23d2642cee575b..d01f967ea2897b 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -85,8 +85,8 @@ added: REPLACEME Starts the V8 CPU profiler on start up, and writes the CPU profile to disk before exit. -If `--prof-dir` is not specified, the generated profile will be placed in the -current working directory. +If `--node-prof-dir` is not specified, the generated profile will be placed +in the current working directory. If `--cpu-prof-name` is not specified, the generated profile will be named `CPU.${yyyymmdd}.${hhmmss}.${pid}.${tid}.${seq}.cpuprofile`. @@ -360,6 +360,19 @@ added: v7.10.0 This option is a no-op. It is kept for compatibility. +### `--node-prof-dir` + + +> Stability: 1 - Experimental + +Specify the directory where the CPU profiles generated by `--cpu-prof` will +be placed. + +This does not apply to `--prof` whose output is handled by V8 instead of +Node.js. + ### `--no-deprecation` - -> Stability: 1 - Experimental - -Specify the directory where the CPU profiles generated by `--cpu-prof` will -be placed. - -This does not apply to `--prof` whose output is handled by V8 instead of -Node.js. - ### `--prof-process`