Problem getting performance sessions from unit tests

I can't performance sessions from my unit tests when I right click on a unit test.
Sometimes I get:
Instrumentation error while processing file <dll>:
Error VSP1018 : VSInstr does not support processing binaries that are already instrumented.
Code coverage in-place instrumentation: The binary <path> was changed during the test run and won't be restored. It may be restored manually from this directory: <path>
Code coverage in-place instrumentation: One or more binaries in <path> were not restored.
They can be restored manually by running the file 'eqtrestore_7d867ba4-e4ae-4d92-a0c6-e8e6627af8a0.bat' in this directory.

Microsoft Visual Studio
Performance Report Error
Error VSP1734 : File contains no data: <path>\UnitTests050719(1).vsp

I also get this error somtimes:
Launch Error
PRF0025: No data was collected.

Any suggestions? I'm not sure if it matters that my dll's are signed. For the code coverage stuff I had to use a workaround for the keyfile that was posted on the product feedback center.
-Clint

[1119 byte] By [ClintStotesbery] at [2008-2-14]
# 1

Make sure you've got code coverage disabled when running your tests under a performance session. Code coverage and the profiler share the same technology for data collection, and they'll step on each other's toes if they're allowed to run together (which they shouldn't be).

You may need to rebuild your tests after running code coverage on them. I'm not certain if it's the case, but the binaries may still have been instrumented for coverage by the time you set up your profiling session.

You didn't mention whether you were using instrumentation or sample profiling above. From the first error message, I'm assuming instrumentation. You might try using sampling if you're having trouble with instrumentation.

AngryRichardMSFT at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Visual Studio Performance Tools (Profiler)...
# 2
I did have code coverage enabled, so I disabled it. I still can't get any performance data. When I choose instrumentation I get this error:
Microsoft Visual Studio
Launch Error
PRF0025: No data was collected.

When I choose sampling I get this error:
Microsoft Visual Studio
Performance report <path>\ActionUnitTests050720.vsp contains no data.

ClintStotesbery at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Visual Studio Performance Tools (Profiler)...
# 3
Check the application event log (Control Panel >> Administrative Tools >> Event Viewer, or eventvwr.msc from the command line) and see if there are any messages from VSPerf.

If nothing obvious pops out of that, I'll have to go chat with the guy who owns this feature and get back to you.

AngryRichardMSFT at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Visual Studio Performance Tools (Profiler)...
# 4
Unfortunately I couldn't find anything relevant to this problem.
ClintStotesbery at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Visual Studio Performance Tools (Profiler)...
# 5
Looks like my hunch was right about signing being a problem.
http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=aeafd991-7fea-45a9-970e-694b5e7c1803
ClintStotesbery at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Visual Studio Performance Tools (Profiler)...
# 6

I'm the developer who responded to the product feedback that you found above. I'll have the blog post up at blogs.msdn.com/ianhu in a day or two about how to use a post-instrument step to resign your instrumented binaries. Check back then to see how to do this.

IanWho at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Visual Studio Performance Tools (Profiler)...
# 7
Thanks Ian. Already had your blog in my reader anyway. Smile
ClintStotesbery at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Visual Studio Performance Tools (Profiler)...

Visual Studio Team System

Site Classified