npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

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

install

npm i perfrep

Downloadsweekly downloads

9

version

0.2.1

license

MIT

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability