Skip to content

Commit dce9142

Browse files
cecia234RafaelGSS
authored andcommitted
cli: clarify --cpu-prof-name allowed values
Refs: #57418 PR-URL: #57433 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]>
1 parent 330fcbd commit dce9142

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
@@ -501,6 +501,15 @@ $ ls *.cpuprofile
501501
CPU.20190409.202950.15293.0.0.cpuprofile
502502
```
503503

504+
If `--cpu-prof-name` is specified, the provided value will be used as-is; patterns such as
505+
`${hhmmss}` or `${pid}` are not supported.
506+
507+
```console
508+
$ node --cpu-prof --cpu-prof-name 'CPU.${pid}.cpuprofile' index.js
509+
$ ls *.cpuprofile
510+
'CPU.${pid}.cpuprofile'
511+
```
512+
504513
### `--cpu-prof-dir`
505514

506515
<!-- YAML

0 commit comments

Comments
 (0)