找回密码
 加入
搜索
查看: 1823|回复: 0

[AU3基础] 【已解决】有关进程监控的问题

[复制链接]
发表于 2012-11-5 09:50:49 | 显示全部楼层 |阅读模式
本帖最后由 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的使用率,大家有什么办法可以做的像任务管理一样的方法吗?谢谢~~
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-11-15 12:41 , Processed in 0.081117 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表