process icon indicating copy to clipboard operation
process copied to clipboard

API for CPU time / memory usage

Open Mathnerd314 opened this issue 9 years ago • 0 comments

It would be like waitForProcess, except returning a statistics list.

On Linux/BSD, this is the wait4 system call. On Windows, these can be extracted with GetProcessMemoryInfo/GetProcessTimes similarly to the exit code. On Mac, wait4 returns the times, but getting memory statistics requires a tricky Mach task info call which probably doesn't work on dead child processes (and I have no easy way of testing it).

Mathnerd314 avatar Mar 08 '16 04:03 Mathnerd314