Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Profiler unit test in Visual Studio 2010?

Can I use VS 2010 Profiler to profile unit test (MSTest)? If yes, how?

Thanks, Michael

like image 374
user150528 Avatar asked Jun 29 '10 23:06

user150528


People also ask

How do I run a unit test in Visual Studio?

Run tests in Test Explorer If Test Explorer is not visible, choose Test on the Visual Studio menu, choose Windows, and then choose Test Explorer (or press Ctrl + E, T). As you run, write, and rerun your tests, the Test Explorer displays the results in a default grouping of Project, Namespace, and Class.

How do I run a performance profiler in Visual Studio?

Open the Performance Profiler by choosing Debug > Performance Profiler (or Alt + F2). For more information on using the CPU Usage or Memory usage tool in the Performance Profiler vs. the debugger-integrated tools, see Run profiling tools with or without the debugger.


1 Answers

If you bring up the "Test View" window you can right click on the test you want to profile and choose "Create Performance Session..."

like image 64
Mharlin Avatar answered Sep 27 '22 19:09

Mharlin