In Visual Studio, this was a really powerful feature! Like you, I cannot find it in VS2012 (no links on MSDN or blogs, ...)
Now, the only solution I have found for profiling Unit Test is to attach Profiler to a process called vstest.executionengine.x86.exe (x86 for me, but it may be different for 64 bits)
You can do this in the Performance Explorer tab after right-clicking.

Once the profiler starts, you can run as many tests as you want. Then stop profiling and you will see all the details of this session.
There are two caveats to this method:
- for some reason, the process is not listed. Maybe he stops when he's idle. Start only one test and watch it.
- You must connect Profiler for each session. I have not yet found a way to script it.
Hope this helps you.
Cybermaxs Sep 20 '12 at 19:18 2012-09-20 19:18
source share