- removed dynamic requires to allow for bundling #154
- add ibm platform (os400) #158
- removes node 8 support
- add z/OS (os390) support
- environment variables to configure pidusage (
PIDUSAGE_USE_PS
,PIDUSAGE_MAXAGE
,PIDUSAGE_SILENT
) - use a default Date when
uptime
returnsundefined
- allow to manually clear the event loop when needed it'll clear itself after a given timeout (default to
60000ms
but you can specify it with themaxage
option, see this file) 1740a4f - fix elapsed and timestamp calculations on linux #80 e5e2b01
- fix ps on darwin, centisenconds multiplier was wrong and was giving bad cpu usage values bcda538
- Fix Buffer.alloc for node < 4.5
- Version unpublished because of a publish mistake from my part due to a npm error message that confused me. Explanation in isse #71
- fix #69 with
ps
use elapsed instead of etime to avoid negative cpu values 0994268 - fix typo in aix
ps
command #68 7d55518
- aix is using ps (was changed by mistake), still no aix CI though
- add alpine to the test suite and make it use procfile
- Improve procfile performances by keeping the procfile open da1c5fb
- After further discussion cpu formula got reverted to the initial one f990f72
- procfiles are back because of performance issues 85e20fa
- allow multiple pids
- remove
advanced
option - don't use
/proc
(procfiles) anymore but useps
instead - more tests
- API change no more
stat
method, module exports a single function - no more
unmonitor
method, this is handed internally - the default call now returns more data:
{
cpu: 10.0, // percentage (it may happen to be greater than 100%)
memory: 357306368, // bytes
ppid: 312, // PPID
pid: 727, // PID
ctime: 867000, // ms user + system time
elapsed: 6650000, // ms since the start of the process
timestamp: 864000000 // ms since epoch
}
Introduce advanced
option to get time, and start
Windows: (wmic) goes back to the first version of wmic, naming wmic process {pid} get workingsetsize,usermodetime,kernelmodetime
. CPU usage % is computed on the flight, per pid.
Windows: (wmic) Use raw data instead of formatted this should speed up wmic
API changes:
require('pidusage').stat(pid, fn)
instead of:
require('pidusage')(pid, fn)
Adds a unmonitor
method to clear process history