Socket
Socket
Sign inDemoInstall

controlport-perf

Package Overview
Dependencies
143
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    controlport-perf

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


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

= 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

FAQs

Last updated on 16 Oct 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc