Performance measurement and profiling

There is a profiler in Visual Studio that can be used to visualize concurrency in your application and see what is going on. Depending on the Visual Studio version, its behavior is different. In Visual Studio 2010, you would just run a profiler session collecting concurrency data and get the required result. In Visual Studio 2012, there was a separate menu option called Concurrency Visualizer and this is the most comfortable way to look at concurrency processes in your application.

In Visual Studio 2013, there is no Concurrency Visualizer option by default, and you can still use the regular profiler to collect the basic concurrency information. However, you can install Concurrency Visualizer separately.

The ...

Get Mastering C# Concurrency now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.