如何监视托管codedui测试(QTAgent)的进程的内存使用情况? [英] How to monitor the memory usage of the process hosting codedui test (QTAgent)?

查看:126
本文介绍了如何监视托管codedui测试(QTAgent)的进程的内存使用情况?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的codedui测试存在内存泄漏,我想更好地确定该泄漏的来源-您知道一种方法来监视运行codedui测试的QTAgent进程吗?

my codedui test have a memory leak and i want to better identify the source of that leak - do you know a way to monitor the QTAgent process who runs the codedui test?

推荐答案

不确定是否需要运行代理,但以下是

Not sure if you need the agent to be running, but the following is advised by Microsoft to find memory leaks:

通过在Start > Run中键入perfmon来启动性能监视器.单击性能监视器和绿色加号图标.

Launch performance monitor by typing perfmon into Start > Run. Click on the performance monitor and the green plus icon.

在此处为您的流程添加以下计数器:

Add the following counters for your process here:

Process-->Private Bytes

Process-->Virtual Bytes

要保存日志数据,请右键单击左面板中的Performance Monitor,然后单击New > Data Collector Set.命名并将其保存在某处,然后在最后一步中检查Start this data collector set now.

To save the log data right click on Performance Monitor in the left panel and click on New > Data Collector Set. Name and save it somewhere, then in the last step check Start this data collector set now.

这将为您提供过程的日志文件.

This will give you a log file for your process.

要使用两个图表读取数据:

To read the data use both graphs:

私有字节计数器指示进程已分配的内存总量,不包括与其他进程共享的内存.

The Private Bytes counter indicates the total amount of memory that a process has allocated, not including memory shared with other processes.

虚拟字节计数器指示进程正在使用的虚拟地址空间的当前大小.

The Virtual Bytes counter indicates the current size of the virtual address space that the process is using.

在此之后,尝试使用 UMDH 来找到问题的根源.

After this try using UMDH to find the source of the problem.

这篇关于如何监视托管codedui测试(QTAgent)的进程的内存使用情况?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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