electron-process-reporter
Utility to extract interesting process reports of an Electron application.
Installation
$ npm install --save electron-process-reporter
Usage
onExtendedProcessMetrics
Returns an Rx.Observable that emits reports of ExtendedProcessMetric
every options.samplingInterval
ms.
;; // returns a rx.Observable
onExcessiveCPUUsage
Will emit ExtendedProcessMetric[]
when a process exceeds the options.percentCPUUsageThreshold
on more than options.samplesCount
samples.
;; // returns a rx.Observable
onProcessTreeMetricsForPid
Returns an Rx.Observable that emits PidUsage[]
every options.samplingInterval
ms.
; // returns a rx.Observable
onExcessiveCPUUsageInProcessTree
Will emit PidUsage[]
when a process of the tree exceeds the options.percentCPUUsageThreshold
on more than options.samplesCount
samples.
; // returns a rx.Observable