node-clinic icon indicating copy to clipboard operation
node-clinic copied to clipboard

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

Open fatihaziz opened this issue 3 years ago • 2 comments

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:

  • ...processstat
  • ...system-info expecting 3, lack of:
  • ...traceevent

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

  • Clinic.js version: Clinic - v11.1.0

  • Node.js version: v14.17.6

  • Browser name and version: Chrome

  • Operating system and version: Win 11 + Cygwin

fatihaziz avatar Mar 23 '22 10:03 fatihaziz

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"?

RafaelGSS avatar Apr 13 '22 13:04 RafaelGSS

surely, wait I will create a test

fatihaziz avatar Apr 13 '22 21:04 fatihaziz

closing for now since cannot reproduce the error

fatihaziz avatar Oct 26 '22 04:10 fatihaziz