From 8ccbfb656ac985591de551e4d82b29498039623d Mon Sep 17 00:00:00 2001 From: Eugenio Ceschia Date: Thu, 13 Mar 2025 09:28:24 +0100 Subject: [PATCH] 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 Reviewed-By: Yagiz Nizipli --- doc/api/cli.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/api/cli.md b/doc/api/cli.md index aabc76d4e8..df76e81ddc 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -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`