diff --git a/doc/api/cli.md b/doc/api/cli.md index d1419e2ccc9ff9..fed5aa90aa3a8f 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -83,8 +83,13 @@ added: REPLACEME > Stability: 1 - Experimental Starts the V8 CPU profiler on start up, and writes the CPU profile to disk -before exit. If `--cpu-prof-path` is not specified, the profile will be -written to `${cwd}/CPU.${yyyymmdd}.${hhmmss}.${pid}.${tid}.${seq}.cpuprofile`. +before exit. + +If `--cpu-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`. ```console $ node --cpu-prof index.js @@ -92,19 +97,24 @@ $ ls *.cpuprofile CPU.20190409.202950.15293.0.0.cpuprofile ``` -### `--cpu-prof-path` +### `--cpu-prof-dir` > Stability: 1 - Experimental -Location where the CPU profile generated by `--cpu-prof` -should be written to. When used alone, it implies `--cpu-prof`. +Specify the directory where the CPU profiles generated by `--cpu-prof` will +be placed. -```console -$ node --cpu-prof-path /tmp/test.cpuprofile index.js -``` +### `--cpu-prof-name` + + +> Stability: 1 - Experimental + +Specify the file name of the CPU profile generated by `--cpu-prof`. ### `--enable-fips`