Returns an array about Memory or IO infos of a running process.
ProcessGetStats ( ["process" [, type]] )
Parameters
| process | [Optional] The name or PID of the process to get infos from. Default (-1) is the current process. |
| type | [Optional] 0 = (default) memory infos, 1 = IO infos. |
Return Value
| Success: | An array of infos data (See Remarks). |
| Failure: | 0. |
Remarks
The array returned is mono-dimensional and is made up as follows:
Related
ProcessList
Example
; retrieve memory infos of the current running process
$mem = ProcessGetStats()
; retrieve IO infos of the current running process
$IO = ProcessGetStats(-1, 1)