Skip to content

Commit 52cd095

Browse files
cecia234aduh95
authored andcommitted
cli: clarify --cpu-prof-name allowed values
Refs: #57418 PR-URL: #57433 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent cc42ee8 commit 52cd095

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/api/cli.md

+9
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,15 @@ $ ls *.cpuprofile
497497
CPU.20190409.202950.15293.0.0.cpuprofile
498498
```
499499

500+
If `--cpu-prof-name` is specified, the provided value will be used as-is; patterns such as
501+
`${hhmmss}` or `${pid}` are not supported.
502+
503+
```console
504+
$ node --cpu-prof --cpu-prof-name 'CPU.${pid}.cpuprofile' index.js
505+
$ ls *.cpuprofile
506+
'CPU.${pid}.cpuprofile'
507+
```
508+
500509
### `--cpu-prof-dir`
501510

502511
<!-- YAML

0 commit comments

Comments
 (0)