Visual Studio 2015诊断工具内存使用率和C ++调试 [英] Visual Studio 2015 Diagnostic Tools Memory Usage & C++ Debugging

查看:457
本文介绍了Visual Studio 2015诊断工具内存使用率和C ++调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Visual Studio Enterprise 2015和一个本机C ++项目.我想分析内存使用情况.我们的软件作为Windows服务运行,因此我通常通过附加到正在运行的服务进行调试.我发现执行此操作时,诊断工具的内存使用情况不可用:

I have Visual Studio Enterprise 2015 and a native C++ project. I would like to analyze memory usage. Our software runs as a Windows service, so I typically debug by attaching to the running service. I found that when I do that the Diagnostic Tools Memory Usage is not available:

但是,当我通过调试器(按F5)启动软件时,会出现内存使用情况"工具:

However, when I start the software through the debugger (by pressing F5) the Memory Usage tool shows up:

是不是应该这样?附加到进程时是否不支持内存使用率诊断工具"?

在附加到本地运行的进程以及进行远程调试(附加到另一台计算机上的进程)时,都缺少内存使用情况诊断工具".

The Memory Usage Diagnostic Tool is missing both when attaching to a locally running process as well as when remote debugging (attaching to a process on another machine).

推荐答案

诊断工具"本机内存探查器将支持在即将到来的Visual Studio 2015 Update 1中附加到进程.您可以尝试一下.

The Diagnostic Tools native memory profiler will support attaching to a process in the upcoming Visual Studio 2015 Update 1. There will be a CTP preview release coming out this Fall that you can try out.

这篇关于Visual Studio 2015诊断工具内存使用率和C ++调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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