VS 2013性能 - 仪器不适用于所有组件 [英] VS 2013 Performance - Instrumentation does not work on all assemblies

查看:58
本文介绍了VS 2013性能 - 仪器不适用于所有组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个WCF项目,我们可以作为自托管控制台应用程序运行。我们的解决方案如下所示:

We have a WCF project, which we can run as a self hosted console application. Our solution looks like this:

解决方案

-ProjectA(类库)

-ProjectA (Class Library)

-ProjectB(Class图书馆)

-ProjectB (Class Library)

-ProjectC(ConsoleApp)

-ProjectC (ConsoleApp)

我们正试图运行一些性能数字仪器仪表。当我们使用采样时,一切正常。当我们切换到仪器时,由于某种原因,我们没有为其中一个dll获得任何数字。例如,我们为ProjectC和ProjectA中的所有函数分析数字
,但从不为ProjectB分析,即使我们知道我们在分析会话期间在ProjectB中运行代码。



任何想法可能导致什么?

We're trying to run some performance numbers using instrumentation. When we use sampling, everything works fine. When we switch to instrumentation, for some reason, we are not getting any numbers back for one of the dlls. For instance, we get profiling numbers for all the functions in ProjectC and ProjectA, but never for ProjectB, even if we know we are running code in ProjectB during the profiling session.

Any ideas what could cause that?

推荐答案

嗨Benjamin Peikes - TRLM,

Hi Benjamin Peikes - TRLM,

您在输出窗口中分析它时是否收到任何警告或错误消息?

Do you get any warning or error messages during you profiler it in the output window?

(1)如果项目已添加为参考,则复制属性是否设置为true对于它,您可以比较项目中引用程序集的属性。

(1)If project was added as the reference, whether the copy property was setup true for it, you could compare the property for the reference assembly in your project.

(2)如果指定要分析为特定DLL的独立二进制文件,结果如何?

(2) If you specify specific DLLs to profile as independent binaries, how about the result?

https://msdn.microsoft.com/en-us/library/bb385752 .aspx

(3)确保所有项目都使用相同的目标,如.NET Framework版本或平台目标等。

(3) Really make sure that all projects are using the same target like the .NET Framework version or the platform target and so on.

最诚挚的问候,

杰克


这篇关于VS 2013性能 - 仪器不适用于所有组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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