如何使用命令提示符获取.exe使用的内存 [英] How to get the memory used of a .exe using command prompt

查看:127
本文介绍了如何使用命令提示符获取.exe使用的内存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用命令提示符,如何获取执行.exe时使用的内存。例如,要查找花费的时间,我可以使用.bat文件,如下所示:

Using the command prompt, how can i get the memory used when executing a .exe. For example, to find the time taken i can use a .bat file as follows:

@echo off
time < nul
Function.exe
time < nul

我该如何为使用的内存做这些事情?

How can i do this for memory used?

推荐答案

尝试一下:

@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

Btw。代替 time< nul ,您可以使用 time / t

Btw. instead of time <nul you can use time /t.

这篇关于如何使用命令提示符获取.exe使用的内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆