From the course: Visual Studio: Advanced Debugging Tools

Configure the CPU monitor - Visual Studio Tutorial

From the course: Visual Studio: Advanced Debugging Tools

Start my 1-month free trial

Configure the CPU monitor

- [Instructor] There are some other useful tools in the Diagnostic Tools window. The one we'll look at in this part of the chapter is the CPU usage. Now that'll add another tab down here to the bottom of the Diagnostic Tool window. So I'll put a check mark here. And then I'll run the application or debug the application. And you'll see that there's a new tab down here called CPU Usage. Now by default, it should be recording all of the use of your CPU. If not, you need to click on this Record CPU Profile, and it's telling you down here to Enable CPU Profiling to see a breakdown of CPU Usage by function. So I would click here to start recording. Now let me stop this. And restart. And this time you'll see that there's a red light here indicating that we are profiling it. So we've got it set, and you can see that it's monitoring in the timeline, there's some information being shown here, how much of the CPU is being used. A little bit ahead when I started up the application, and then not much at the moment. Now in order to actually use this, we need to put a break point in our code, so let's do that in the next video.

Contents