在 Visual Studio 上查找性能峰值 [英] Finding Performance Spikes on Visual Studio

查看:31
本文介绍了在 Visual Studio 上查找性能峰值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以以某种方式测量所有已安装的 Visual Studio 插件/扩展(VS 2012/2013)的 CPU 和/或 IO 要求?

Is it somehow possible to measure the CPU and/or IO requirements for all installed Visual Studio Addins / Extensions (VS 2012 / 2013)?

具体问题:我安装了很多 Visual Studio 2013 的扩展和插件,一般来说它运行流畅,只是有时我会遇到约 5-10 秒的峰值,而 VS 只是冻结.(没有任何插件或扩展,它不会发生).知道如何找到问题吗?

Concrete Problem: I have quite a lot of Extensions and Addins for Visual Studio 2013 installed and in general it runs smooth, just sometimes i experience ~5-10 sec spikes where VS just freezes. (Without any Addins or Extensions it doesn't happen). Any idea how to find the problem?

推荐答案

如果重现的频率足够高,您可以将调试器附加到 Visual Studio 并在出现问题时中断.方便的是,Visual Studio 是一个调试器,因此如果您在一次调试 > 附加到进程中启动两个实例,您可以只附加到另一个.当您遇到问题时,(快速)进入另一个线程并查看主线程(它在线程窗口中进行了标记.)查看堆栈以查看是否有任何明显的违规者...

If it reproduces often enough, you can just attach a debugger to Visual Studio and break in when something is going bad. Conveniently, Visual Studio is a debugger, so if you launch two instances in and in one go Debug > Attach to process, you can just attach to the other. When you hit the issue, break in (quickly) in the other and look at the main thread (it's labled in the threads window.) Look at the stack to see if there are any obvious offenders...

这篇关于在 Visual Studio 上查找性能峰值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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