精易论坛

标题: win2003如何取进程使用内存? [打印本页]

作者: tclz720    时间: 2021-8-20 16:15
标题: win2003如何取进程使用内存?
win10 系统下用 进程_内存使用 能正常取到进程的内存占用值,但是在2003系统下却什么也取不到了,只能取到其他软件的内存使用情况

作者: tclz720    时间: 2021-8-20 16:17
win10下能够正常看到内存使用情况
win2003 却不显示





作者: 走一回    时间: 2021-8-20 16:34
不知道你是怎么取到每个进程的内存的?
作者: 影知    时间: 2021-8-20 16:50
调试输出 (系统_取DOS执行结果 (“tasklist”))

这样看看有没有
作者: tclz720    时间: 2021-8-20 17:01
走一回 发表于 2021-8-20 16:34
不知道你是怎么取到每个进程的内存的?
  
计次循环首 (超级列表框1.取表项数 (), 循环变量)
PID = 进程_名取ID (超级列表框1.取标题 (循环变量 - 1, 2))
占用 = 进程_内存使用 (PID)
左边文本 = 文本_取左边 (占用, “,”)
右边文本 = 文本_取右边 (占用, “,”)
右边文本2 = 文本_取左边 (右边文本, “ K”)
最终大小 = 到整数 (左边文本 + 右边文本2)
超级列表框1.置标题 (循环变量 - 1, 4, 到文本 (最终大小))
加入成员 (内存占用, 最终大小)
计次循环尾 ()


i支持库列表   支持库注释   
iext扩展界面支持库一


作者: 戴眼镜的小狼    时间: 2021-8-20 17:45
用 game-EC模块里的 内存_取使用量()
win2003。xp,win7 都行
作者: tclz720    时间: 2021-8-20 20:16
影知 发表于 2021-8-20 16:50
调试输出 (系统_取DOS执行结果 (“tasklist”))

这样看看有没有

映像名称                       PID 会话名              会话#       内存使用
========================= ======== ================ =========== ============
System Idle Process              0 Services                   0          8 K
System                           4 Services                   0      4,008 K
Registry                       168 Services                   0     41,276 K
smss.exe                       548 Services                   0      1,244 K
csrss.exe                      800 Services                   0      6,556 K
wininit.exe                    888 Services                   0      6,872 K
csrss.exe                      896 Console                    1      6,204 K
services.exe                   960 Services                   0     10,552 K
lsass.exe                      980 Services                   0     19,388 K
svchost.exe                    628 Services                   0      3,904 K
fontdrvhost.exe                760 Services                   0      4,432 K
svchost.exe                    608 Services                   0     24,488 K
svchost.exe                   1060 Services                   0     13,264 K
svchost.exe                   1104 Services                   0      9,000 K
winlogon.exe                  1180 Console                    1     11,676 K
fontdrvhost.exe               1236 Console                    1     25,816 K
dwm.exe                       1324 Console                    1    158,328 K
svchost.exe                   1348 Services                   0      8,848 K
svchost.exe                   1468 Services                   0     15,496 K
svchost.exe                   1476 Services                   0     10,624 K
svchost.exe                   1484 Services                   0     12,364 K
svchost.exe                   1492 Services                   0     12,352 K
svchost.exe                   1632 Services                   0      6,312 K
svchost.exe                   1680 Services                   0     10,576 K
svchost.exe                   1720 Services                   0      6,240 K
svchost.exe                   1752 Services                   0     17,112 K
svchost.exe                   1924 Services                   0     10,860 K
svchost.exe                   1972 Services                   0      8,240 K
svchost.exe                   1132 Services                   0     11,992 K
svchost.exe                   2060 Services                   0      9,292 K
NVDisplay.Container.exe       2216 Services                   0     18,216 K
svchost.exe                   2400 Services                   0     13,580 K
svchost.exe                   2408 Services                   0      5,944 K
svchost.exe                   2416 Services                   0      8,300 K
Memory Compression            2552 Services                   0         12 K
NVDisplay.Container.exe       2608 Console                    1     67,252 K
svchost.exe                   2696 Services                   0      8,740 K
svchost.exe                   2784 Services                   0      8,512 K
wsctrlsvc.exe                 2856 Services                   0      6,432 K
svchost.exe                   3008 Services                   0     18,256 K
svchost.exe                   2072 Services                   0      9,448 K
sihost.exe                    3708 Console                    1     27,880 K
svchost.exe                   3744 Console                    1     17,216 K
svchost.exe                   3808 Console                    1     26,668 K
svchost.exe                   3816 Services                   0     12,588 K
svchost.exe                   3936 Services                   0     12,360 K
PopBlock.exe                  3948 Console                    1      4,204 K
作者: 影知    时间: 2021-8-21 09:05
不是有内存使用量吗?




欢迎光临 精易论坛 (https://125.confly.eu.org/) Powered by Discuz! X3.4