From the course: Visual Studio: Advanced Debugging Tools

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Analyze memory usage with Profiler

Analyze memory usage with Profiler - Visual Studio Tutorial

From the course: Visual Studio: Advanced Debugging Tools

Start my 1-month free trial

Analyze memory usage with Profiler

- [Instructor] It's time to open the Performance Profiler. Once again, I'll be analyzing my start-up project in the solution. I am using a release build for this, and this time instead of analyzing my CPU, I'll be looking at memory usage. Click on Start. The UI is very similar to what we saw in the diagnostics tools. There's some different colors for the marks, but it's basically the same idea, and you can take a snapshot by clicking on this button. Then I'll increase the memory usage. Take another snapshot. Remove some items from the list. Force a garbage collection. I don't see the memory shrinking, but that's okay. I'll add some more items to the list. And then I'll take one more snapshot. It looks like I did trigger garbage collection at this point, and now I'll stop the application. And now, you see that I got this diagsession tab once again, and I can right click on that and choose to save the report. I'll save…

Contents