cli: clarify --cpu-prof-name allowed values

Refs: https://github.com/nodejs/node/issues/57418
PR-URL: https://github.com/nodejs/node/pull/57433
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
This commit is contained in:
Eugenio Ceschia authored and RafaelGSS committed 2025-05-02 17:05:22 -03:00
1 parent 26d4668af6
commit 6997a7c278
1 file changed
+9
+9
View File
@@ -501,6 +501,15 @@ $ ls *.cpuprofile
CPU.20190409.202950.15293.0.0.cpuprofile
```
If `--cpu-prof-name` is specified, the provided value will be used as-is; patterns such as
`${hhmmss}` or `${pid}` are not supported.
```console
$ node --cpu-prof --cpu-prof-name 'CPU.${pid}.cpuprofile' index.js
$ ls *.cpuprofile
'CPU.${pid}.cpuprofile'
```
### `--cpu-prof-dir`
<!-- YAML