I have a Visual Studio 2008 unit test project that depends on a dll project in the same solution. With this setup, I want to profile a single unit test with a Visual Studio performance session. Said test calls into methods located in the dll project and I want to see where the perf bottleneck is in that dll.
So far so good. At first it seemed simple: In Visual Studio Test View, I right-clicked on the relevant test and chose "Create Performance Session...". In the wizard that follows, I chose instrumentation. However, after running the resulting performance session, only data for methods located in the unit test dll were shown. I then right-clicked on the "Targets" folder in the perf session and chose "Add Target Binary..." to add the dll (I chose the dll under bin/release in the dll project folder). This works inasmuch as that the dll is now instrumented too, but I keep missing the perf data for the methods in that dll. I tried to add the dll from different locations ...
- bin/release under the dll project folder
- obj/release under the dll project folder
- bin/release under the unit test dll project folder
... none of which worked.
I'd appreciate feedback on how to gather perf data of the dependent dll.