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

fee*_*ree 14 profiler visual-studio-2010

我现在使用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.
Run Code Online (Sandbox Code Playgroud)

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

Vic*_*ria 0

我遇到了类似的情况,解决这个问题的方法是删除我在 IIS (express) 中添加到网站的所有额外绑定。因此,如果您的情况允许这种方法,那么:

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

重新启动 Visual Studio,希望你的分析器这次能正常工作!