Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty report generated for nodejs process #419

Open
bradzacher opened this issue Dec 15, 2022 · 2 comments
Open

Empty report generated for nodejs process #419

bradzacher opened this issue Dec 15, 2022 · 2 comments
Labels

Comments

@bradzacher
Copy link

I was interested in using the clinic tooling in order to profile our ESLint tooling to help figure out where some hotspots were. Most of the tools worked, but clinic doctor returns an empty profile.

Repro:

  1. clone https://github.com/typescript-eslint/typescript-eslint
  2. clinic doctor -- node ./node_modules/.bin/eslint "**/*.ts"
  3. observe console logs Profile data collected seems to be empty, report may not be generated
  4. the html report is empty

Am I doing something wrong? Is there some way that I can use the tooling for this usecase or is it just not supported?

@RafaelGSS
Copy link
Contributor

Hi @bradzacher

I'm trying to reproduce it locally, but the process hangs and does not exit successfully. It might be because of lint error?

rafaelgss@rafaelgss-desktop:~/repos/os/tests/typescript-eslint$ clinic doctor -- node ./node_modules/.bin/eslint "**/*.ts"
To generate the report press: Ctrl + C

/home/rafaelgss/repos/os/tests/typescript-eslint/packages/typescript-estree/tests/lib/parse.test.ts
  400:21  error  Expect must have a corresponding matcher call  jest/valid-expect

✖ 1 problem (1 error, 0 warnings)

Error: process exited by signal SIGABRT
    at ChildProcess.<anonymous> (/home/rafaelgss/.nvm/versions/node/v19.3.0/lib/node_modules/clinic/node_modules/@clinic/doctor/index.js:133:13)
    at Object.onceWrapper (node:events:628:26)
    at ChildProcess.emit (node:events:513:28)
    at ChildProcess._handle.onexit (node:internal/child_process:293:12)

@bradzacher
Copy link
Author

weird - it exits just fine for me.

Adding to the repro:

  1. clone
  2. yarn
  3. clinic doctor -- node ./node_modules/.bin/eslint "**/*.ts"
    • specifically I'm running $(yarn global bin)/clinic doctor -- node ./node_modules/.bin/eslint "**/*.ts"

This is the result clinic returns to me:
Archive.zip

@RafaelGSS RafaelGSS transferred this issue from clinicjs/node-clinic-doctor Mar 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants