How to monitor the memory usage of the process hosting codedui test (QTAgent)?

做~自己de王妃 提交于 2020-01-03 06:06:29

问题


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?


回答1:


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

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

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.

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



来源:https://stackoverflow.com/questions/29731604/how-to-monitor-the-memory-usage-of-the-process-hosting-codedui-test-qtagent

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!