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

Dependencies (10)

Dev Dependencies (5)

Package Sidebar

Install

npm i controlport-perf

Weekly Downloads

0

Version

2.0.0

License

none

Last publish

Collaborators

  • rtsao
  • usiarhei
  • kenns29
  • shengs
  • emrahs
  • zacklk
  • uber-ospo
  • raynos