Mert Nuhoglu
Mert Nuhoglu

Reputation: 10143

Measuring time spent in each layer in Visual Studio Load Tests

I want to measure the time spent in each layer or module in my application.

Dynatrace has such a feature. I wonder if this is possible with Visual Studio 2012 Ultimate's own load testing tool?

Upvotes: 3

Views: 651

Answers (1)

Cybermaxs
Cybermaxs

Reputation: 24558

It's possible to profile .Net application using Visual Studio Profiler. For asp.net, you can enable profiling by editing test settings file as described here.

However, the will only use the Sampling Method : it's a statistical profiling method that shows you the functions that are doing most of the user mode work in the application. You don't have timings, but it's a good place to start to look for areas to speed up your application. You can also get tiers interactions (WCF or ADO.net).

You can also profile an application using your favorite profiler during a load test because VS load testing tool can run setup/cleanup code.

Edit : As I said, all is described here.

Create new /update current test settings file. Be Sure to select it before the run (Test/Test Settings/Select).

Be sure to check "ASP.NET Profiler" in the settings.

enter image description here

Run load tests as usual. At the end you will see a new icon in the tests results.

enter image description here

Upvotes: 1

Related Questions