perfrep

0.2.1 • Public • Published

perfrep

Host Performance Report in Percent

const perfrep = require('perfrep');
 
const {cpu, memory, heap} = await perfrep();
 
// log to statsd for example
logMetrics(
    ...Object.entries(await perfrep())
        .map(
            ([key, value]) => `application.host_perf.${key}_usage:${value}|ms|@0.1`
        )
    )
);

Or take a glance at your own machine

npm i -g perfrep

perfrep

Package Sidebar

Install

npm i perfrep

Weekly Downloads

0

Version

0.2.1

License

MIT

Unpacked Size

2.73 kB

Total Files

4

Last publish

Collaborators

  • omrilotan