resources-usage

1.0.1 • Public • Published

resources-usage

Module is designed to get worker load.

How to use

interval is a total time in which you want to check statistics. count is call quantity in given interval.

  const { resroucesUsage } = require('resources-usage')

  resourcesUsage(interval, count).then((result) => {
    /**
     * result -> { cpuLoadPercentage: number busyMemoryPercentage: number }
     */
  }).catch()

Readme

Keywords

none

Package Sidebar

Install

npm i resources-usage

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

12.1 kB

Total Files

9

Last publish

Collaborators

  • narekhovhannisyan