如何天寒使用Visual Studio 2013 Professional的一个单元测试中的表现? [英] How to profile performance for a single unit test using Visual Studio 2013 Professional?

查看:164
本文介绍了如何天寒使用Visual Studio 2013 Professional的一个单元测试中的表现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想运行一个单一的自动化测试在Visual Studio 2013专业版探查。这是不是从这里其他问题上如何做到使用专业版清晰。

I would like to run the Visual Studio 2013 Professional edition profiler for a single automated test. It is not clear from other questions here on how to do so using the Professional edition.

这是可能的,如果是这样,怎么样?

Is this possible and if so, how?

推荐答案

好了,我想通了,如何做到这一点的探查采样(未实现的)...

Ok, so I figured out how to do it for profiler sampling (not instrumentation)...


  1. 启动的Visual Studio(VS),并打开具有自动测试,你要分析的项目。

  2. 把一个断点将异形测试的第一行。

  3. 调试测试。

  4. 启动VS的第二个实例。

  5. 开启性能资源管理器(工具 - > Analyze-> Windows的>性能资源管理器)。

  6. 在性能资源管理器,单击动作 - >附加,重视vstest.executionengine。*。

  7. 返回到第一VS实例(目前处于断点)和运行测试完成。

  8. 返回到第二VS实例。探查会检测到单元测试进程已退出并完成其剖析。

有一件事情是可以改进的将与仪器要做到这一点,但它目前并未清楚,我怎么会在VS专业版来完成。

One thing that could be improved would be to do this with instrumentation, but it is not currently clear to me how that could be done in VS Professional edition.

这篇关于如何天寒使用Visual Studio 2013 Professional的一个单元测试中的表现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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