perfrep
v0.2.1
Published
๐ Host Performance Report in Percent
Downloads
3
Maintainers
Readme
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