如何摆脱Microsoft Visual Studio 2010 Performance Profiler中的“PRF0002:Instrumentation failed with these options”错误?

问题描述 投票:14回答:2

我现在使用Microsoft Visual Studio 2010 Performance Profiler来配置一个程序。当我使用CPU采样方法时,它工作得很好。但是,当我使用Instrumentation方法时,我收到以下错误消息:

PRF0002: Instrumentation failed with these options: /u "my program" /excludesmallfuns. Please check the output window for additional details.

我想知道如何摆脱这个错误。谢谢!

visual-studio-2010 profiler
2个回答
0
投票

我有类似的情况,为我修复的是删除我在IIS(快递)中添加到我的网站的所有额外绑定。所以,如果您的情况允许这种方法,那么:

  1. 打开IIS管理器
  2. 在连接窗格中,展开“站点”
  3. 右键单击您的网站(或默认网站)
  4. 选择“编辑绑定”
  5. 选择除默认端口80以外的所有绑定
  6. 单击“删除”并关闭弹出窗口。
  7. 我也重启了IIS。

重启Visual Studio,希望你的探查器这次工作!


0
投票

我遇到了同样的问题。事实证明,您必须为要配置的部件打开链接器配置文件开关。以下是如何做到这一点:turn on profiling。但是在我的情况下,我已经构建了我的可执行文件和所需的dll并进行了分析,这就产生了问题。一旦我为我的可执行文件关闭了profiling标志,我就可以使用这种方法对其进行分析: profiling specific dlls msdn

© www.soinside.com 2019 - 2024. All rights reserved.