Skip to content

Commit e274c9a

Browse files
cecia234aduh95
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 fdad1ae commit e274c9a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/api/cli.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,15 @@ $ ls *.cpuprofile
493493
CPU.20190409.202950.15293.0.0.cpuprofile
494494
```
495495

496+
If `--cpu-prof-name` is specified, the provided value will be used as-is; patterns such as
497+
`${hhmmss}` or `${pid}` are not supported.
498+
499+
```console
500+
$ node --cpu-prof --cpu-prof-name 'CPU.${pid}.cpuprofile' index.js
501+
$ ls *.cpuprofile
502+
'CPU.${pid}.cpuprofile'
503+
```
504+
496505
### `--cpu-prof-dir`
497506

498507
<!-- YAML

0 commit comments

Comments
 (0)