How to use the pidusage.clear function in pidusage

To help you get started, we’ve selected a few pidusage examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ModusCreateOrg / gimbal / packages / gimbal-core / src / utils / Process.ts View on Github external
public end(): void {
    if (this.interval) {
      clearInterval(this.interval);

      this.interval = undefined;
    }

    pidusage.clear();
  }

pidusage

Cross-platform process cpu % and memory usage of a PID

MIT
Latest version published 2 years ago

Package Health Score

80 / 100
Full package analysis