Skip to content

Latest commit

 

History

History

clinicjs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Clinic.js

Links

Library

Related

Installation

# Using pnpm
pnpm add clinic autocannon -D

Configuration

{
  // ...
  "scripts": {
    // ...
    "dev:doctor": "clinic doctor --on-port 'autocannon -c 100 -d 30 http://localhost:3000' -- node ./dist/src/main.js"
  }
}

CLI

Links

Installation

# Using NPM
npm install clinic -g

Commands

clinic -h

clinic doctor -h
clinic bubbleprof -h
clinic clean -h
clinic flame -h
clinic heapprofiler -h

Usage

With Doctor

#
clinic doctor -- node ./server.js

#
clinic doctor --on-port 'autocannon -c 100 -d 30 http://localhost:3000' -- node ./server.js

With Bubbleprof

#
clinic bubbleprof -- node ./server.js

#
clinic bubbleprof --on-port 'autocannon -c 100 -d 30 http://localhost:3000' -- node ./server.js

With Flame

#
clinic flame -- node ./server.js

#
clinic flame --on-port 'autocannon -c 100 -d 30 http://localhost:3000' -- node ./server.js

With HeapProfiler

#
clinic heapprofiler -- node ./server.js

#
clinic heapprofiler --on-port 'autocannon -c 100 -d 30 http://localhost:3000' -- node ./server.js