npm.io
0.2.1 • Published 7 years agoCLI

perfrep

Licence
MIT
Version
0.2.1
Deps
2
Size
3 kB
Vulns
0
Weekly
0
Stars
39

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

Keywords