|
本帖最后由 wanghao4023030 于 2012-11-7 09:40 编辑
大家好,我想做一个监控一个进程的CPU使用率,内存使用,IO使用的情况。
在AU3里面有现成的函数ProcessGetStats
The array returned is mono-dimensional and is made up as follows:
Type = 0 : Memory Stats
$array[0] = WorkingSetSize
$array[1] = PeakWorkingSetSize
Type = 1 : IO Stats
$array[0] = number of read operations performed.
$array[1] = number of write operations performed.
$array[2] = number of I/O operations performed, other than read and write operations.
$array[3] = number of bytes read.
$array[4] = number of bytes write.
$array[5] = number of bytes transferred during operations other than read and write operations.
但是其读取的出的数值和任务管理器中的聚聚有所出入,而且没有办法得到CPU的使用率,大家有什么办法可以做的像任务管理一样的方法吗?谢谢~~ |
|