Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 405 Bytes

File metadata and controls

23 lines (17 loc) · 405 Bytes

debug-server

Take memory heapdumps or profile CPU usage

Usage

Include the following snippet in server program

let DebugServer = require('debug-server')
let debugServer = new DebugServer()
debugServer.start()

Take a memory dump by using

$ curl localhost:1337/snapshot > dump.heapsnapshot

A CPU profile

$ curl localhost:1337/profile > profile.cpuprofile