Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 52cd095

Browse filesBrowse 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
Copy full SHA for 52cd095

File tree

Expand file treeCollapse file tree

1 file changed

+9
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/cli.md‎

Copy file name to clipboardExpand all lines: doc/api/cli.md
+9Lines changed: 9 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.