The resulting file (.clinic/555.clinic-heapprofiler) of the clinic heapprofiler -- node foo.js command would contain the PID (555) of the "foo.js" process.
Current Behavior
The file name contain the PID of the parent clinic process itself.
This behaviour is different from all other clinic modes (flame, doctor, bubbleprof) where the used PID is the one of the child process.
Steps to Reproduce (for bugs)
run clinic heapprofiler --collect-only -- node app.js
inspect the PIDs of the clinic process and the child "app" process
stop the clinic heapprofiler (CTRL-C)
Check the name of the generated result file
Environment
Clinic.js version: v12.1.0
Heapprofiler version: v4.1.1
Node.js version: v16.14.2
Operating system and version: Debian GNU/Linux 10 (buster)
Expected Behavior
The resulting file (
.clinic/555.clinic-heapprofiler
) of theclinic heapprofiler -- node foo.js
command would contain the PID (555) of the "foo.js" process.Current Behavior
The file name contain the PID of the parent clinic process itself.
This behaviour is different from all other
clinic
modes (flame
,doctor
,bubbleprof
) where the used PID is the one of the child process.Steps to Reproduce (for bugs)
clinic heapprofiler --collect-only -- node app.js
Environment