clinicjs / node-clinic

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

feat: accept --name argument #399

Closed RafaelGSS closed 1 year ago

RafaelGSS commented 1 year ago

This introduces a new CLI flag, --name. It allows the user to specify an identifier for their report. For instance, let's imagine you are profiling a Node.js 18 app and performing the improvements on the flight.

$ clinic flame --name v18-test --autocannon [ / ] -- node index.js

It will generate the following tree:

.clinic
├── v18-test.clinic-flame
│   ├── v18-test.clinic-flame-inlinedfunctions
│   ├── v18-test.clinic-flame-samples
│   └── v18-test.clinic-flame-systeminfo
└── v18-test.clinic-flame.html

And every time I run the clinic flame script, it will update the current file (v18-test.clinic-flame*), so I just need to reload my .html page.

RafaelGSS commented 1 year ago

v18 CI is a known-issue #393