使用Visual Studio 2012分析.NET类库时收集的任何数据 [英] No data collected when profiling .NET class library with Visual Studio 2012

查看:261
本文介绍了使用Visual Studio 2012分析.NET类库时收集的任何数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图性能配置的 C5通用收集库C#和CLI与Visual Studio 2012 的最终。由于该项目没有执行我做了溶液中的一个新的控制台应用程序项目。该项目包含与创建一个大集合元素的数据结构中的一种主要方法,一个简单的类。问题是,我的CPU采样始终与下面的输出返回:

I'm trying to performance profile the C5 Generic Collection Library for C# and CLI with Visual Studio 2012 Ultimate. Since the project has no executable I've made a new Console Application project in the solution. The project contains a simple class with a main method creating one of the data structures with a large collection of elements. The problem is that my CPU sampling always returns with the following output:

Profiling started.
Profiling process ID 2684 (C5.Performance).
Process ID 2684 has exited.
Data written to C:\<some path>\C5\C5.Performance130904.vsp.
Profiling finished.
PRF0025: No data was collected.
Profiling complete.

和写着 PRF0025确认框:收集无数据我已经试过更改为集合大小,因此CPU将有更多的工作要做,但没有任何运气。我没有问题,做.NET内存分配分析。

and a confirm box that says PRF0025: No data was collected. I've tried to changed the collection size so the CPU would have more to do, but without any luck. I have no problem doing .NET memory allocation profiling.

我一个OSX主机上运行的Windows 7上的VirtualBox。

I run Windows 7 on a VirtualBox on a OSX host.

推荐答案

收集.NET对象分配信息 下的属性页:

Enable Collect .NET object allocation information under the property pages:


  1. 性能资源管理器,用鼠标右键单击性能会话,然后点击属性

  2. 性能会话属性页对话框中,点击常规标签,并选中收集.NET对象分配信息复选框。

  3. 收集.NET对象的生命周期的数据,选择同时收集.NET对象生命周期的信息复选框。

  1. In Performance Explorer, right-click the performance session, and then click Properties.
  2. On the Performance Session Property Pages dialog box, click the General tab, and select the Collect .NET object allocation information check box.
  3. To collect .NET object lifetime data, select the Also collect .NET object lifetime information check box.

这篇关于使用Visual Studio 2012分析.NET类库时收集的任何数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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