【文件属性】:
文件名称:node_sysstats:Node、跨平台的系统统计
文件大小:11KB
文件格式:ZIP
更新时间:2021-06-13 16:10:41
JavaScript
系统统计
在易于使用的 API 中提供系统统计信息。 专为跨平台设计,因此您也可以在 Windows 上收集统计信息!
安装
npm install sysstats
用法
var stats = require ( 'sysstats' ) ( ) ;
stats . cpus ( ) ;
// Returns the cpu usages and speeds for the last second.
// [
// {
// speed: "2400",
// times: {
// user: 125,
// nice: 0,
// idle: 875,
// irq: 0,
// system: 0
// }
// }
// ]
stats . m
【文件预览】:
node_sysstats-master
----.travis.yml(154B)
----package.json(929B)
----tests()
--------sysstatsSpec.js(2KB)
----LICENSE(18KB)
----.gitignore(526B)
----lib()
--------sysstats.js(2KB)
----README.md(2KB)