问题
I am now using Microsoft Visual Studio 2010 Performance Profiler to profile one program. It works very well when I use CPU sampling method. However, when I use Instrumentation method, I get the following error message:
PRF0002: Instrumentation failed with these options: /u "my program" /excludesmallfuns. Please check the output window for additional details.
I was wondering how I could get rid of this error. Thanks!
回答1:
I had a similar situation, and what fixed it for me was removing all the extra bindings I had added to my website in IIS (express). So, if your situation allows for this approach, then:
- Open IIS Manager
- In the connection pane, expand "Sites"
- Right-click on your website (or Default Web Site)
- Select "Edit Bindings"
- Select all bindings other than the default one with port 80
- Click "Remove" and close the popup.
- I also restarted IIS.
Restart Visual Studio, and hopefully your profiler works this time!
回答2:
I was facing the same problem. It turned out that you have to turn on the linker profile switch for the part you want to profile. Here is how you can do that:
turn on profiling. However in my case I was had build my executable and the required dlls with profiling on and that was creating the issue. As soon as I turned profiling flag off for my executable I was able to profile it using this method:
profiling specific dlls msdn
来源:https://stackoverflow.com/questions/13806398/how-could-i-get-rid-of-prf0002-instrumentation-failed-with-these-options-erro