# Using pnpm
pnpm add clinic autocannon -D
{
// ...
"scripts": {
// ...
"dev:doctor": "clinic doctor --on-port 'autocannon -c 100 -d 30 http://localhost:3000' -- node ./dist/src/main.js"
}
}
# Using NPM
npm install clinic -g
clinic -h
clinic doctor -h
clinic bubbleprof -h
clinic clean -h
clinic flame -h
clinic heapprofiler -h
#
clinic doctor -- node ./server.js
#
clinic doctor --on-port 'autocannon -c 100 -d 30 http://localhost:3000' -- node ./server.js
#
clinic bubbleprof -- node ./server.js
#
clinic bubbleprof --on-port 'autocannon -c 100 -d 30 http://localhost:3000' -- node ./server.js
#
clinic flame -- node ./server.js
#
clinic flame --on-port 'autocannon -c 100 -d 30 http://localhost:3000' -- node ./server.js
#
clinic heapprofiler -- node ./server.js
#
clinic heapprofiler --on-port 'autocannon -c 100 -d 30 http://localhost:3000' -- node ./server.js