使用命令提示符,我如何获得执行.exe时使用的内存。例如,要查找所花费的时间,我可以使用.bat文件,如下所示:
@echo off
time < nul
Function.exe
time < nul
我怎么做这个内存使用?
试试这个:
@echo off
mem | find "available to MS-DOS"
function.exe
mem | find "available to MS-DOS"
mem
命令输出(示例):
655360 bytes total conventional memory
655360 bytes available to MS-DOS
599312 largest executable program size
1048576 bytes total contiguous extended memory
0 bytes available contiguous extended memory
941056 bytes available XMS memory
MS-DOS resident in High Memory Area
顺便说一句。你可以用time /t
代替time <nul