controlport-perf

2.0.0 • Public • Published

= controlport-perf =

Lives in a service and provides an http endpoint for retrieving performance metrics

To use, require into your project:

var perf = require('controlport-perf');
perf().listen(3202);

Then, you can use the CLI to pull out a leaderboard or heapdump:

$ controlport perf -h localhost:3202 -t 3 leaderboard
$ controlport perf -h localhost:3202 heapdump

The -t parameter is used to specity the amount of time (in seconds) that we're profiling for.

heapdump will copy the heapdump into the directory it's run from. You can load these into the chrome developer tools to inspect it.

These commands can be run from a remote host. Everything goes thru ssh:

$ controlport-perf -h rf.dev:3202 heapdump

Keywords

none

install

npm i controlport-perf

Downloadsweekly downloads

18

version

2.0.0

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability