1.0.1 • Published 2 years ago

resources-usage v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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()