如何在Visual Studio中查看网络流量

问题描述:

根据此博客文章性能和功能中有一个称为Visual Studio网络工具的东西.诊断程序,但我找不到它.如果启动新的性能分析会话,则我拥有各种各样的工具(CPU,内存),但没有网络.在Visual Studio 2015和2017中都进行了尝试.

According to this Blog post there's something called Visual Studio Network Tool in performance & diagnostics, but I can't find it. If I start a new performance profiling session, I have all sorts of tools (CPU, Memory) but no Network. Tried in both Visual Studio 2015 and 2017.

要访问网络工具,请在Visual Studio 2015中打开诊断工具"窗口,然后在调试"菜单上,选择不进行调试就启动诊断工具"(或按Alt + F2).

To access the Network tool, open the Diagnostics Tools window in Visual Studio 2015 and on the Debug menu, select Start Diagnostic Tools without Debugging (or just press Alt+F2).

在诊断页面上,选择分析目标(您的启动项目已预先选择为分析目标,但您可以选择以已安装或正在运行的应用为目标),然后选择网络并按开始.另外,由于该工具是性能和诊断"中心的一部分,因此您也可以选择其他工具来运行组合的会话.

On the diagnostics page, select the Analysis Target (your startup project is preselected as the analysis target but you can choose to target an installed or running app instead), then select Network and press Start. Alternatively, since the tool is part of the Performance and Diagnostics hub, you can also select additional tools in order to run a combined session.

您可以在此处找到更多信息 https://blogs.msdn .microsoft.com/visualstudio/2015/05/04/introducing-visual-studios-network-tool/

You can find more information here https://blogs.msdn.microsoft.com/visualstudio/2015/05/04/introducing-visual-studios-network-tool/