clinicjs / node-clinic

Clinic.js diagnoses your Node.js performance issues
https://clinicjs.org
MIT License
5.67k stars 125 forks source link

When running clinic shorter than 30second, get error "No files matching the pattern..." instead of handled error message like "running time too short" #346

Closed fatihaziz closed 1 year ago

fatihaziz commented 2 years ago

Expected Behavior

Should show "profiling time to short" when the clinic running bellow 30-1 minute.

Current Behavior

throwing error Error: No files matching the pattern found at notFound (...\node_modules\@clinic\node-trace-log-join\index.js:65:15) at combine (...\node_modules\@clinic\node-trace-log-join\index.js:24:34) at ...\node_modules\@clinic\node-trace-log-join\index.js:20:5 at FSReqCallback.oncomplete (fs.js:180:23) and inside .clinic/{PID}.clinic-doctor there is only 2 files:

Steps to Reproduce (for bugs)

  1. create simple server.js
  2. run npx clinic doctor -- node server.js
  3. press ctrl + c bellow 30 seconds
  4. getting error

Sample upload

https://snipboard.io/wHgIbd.jpg

Environment

DEVELOPMENT

RafaelGSS commented 2 years ago

Would you like to send a Pull Request to address this issue? Remember to add unit tests.

Also, can you share the "simple server.js"?

fatihaziz commented 2 years ago

surely, wait I will create a test

fatihaziz commented 1 year ago

closing for now since cannot reproduce the error