Parallel debugging and profiling tools
In this section, we will look at three parallel application debugging and profiling tools. These are the Parallel Stacks window, the Tasks pane, and the Concurrency Visualizer. You will need to open the CH15_ParallelProgrammingDebuggingAndProfilingSample
project for this. We will be using this project as we work through the next three sections.
The Parallel Stacks window
Run the program until it is paused by the debugger. Then, from the Visual Studio menu, select Debug | Windows | Parallel Tasks. This will display the Parallel Tasks window. You should see the following:
As you can see, our main thread is initiated via our Program.Main
method. We can see that the debugger is paused in Program.MethodC
. There are four threads – one each for methods A, B, and C, and a fourth in external code. There are also five threads running – these are external code...