Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Use http server for profiles and heapdumps

Resources

Stars

0 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages