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 - Visual Studio Tutorial
From the course: Visual Studio: Advanced Debugging Tools
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
-
-
-
-
-
Configure the CPU monitor1m 12s
-
(Locked)
Analyze CPU usage with Diagnostics tools2m 55s
-
(Locked)
Analyze CPU usage with Profiler2m 58s
-
View CPU usage by function3m 27s
-
(Locked)
Configure memory monitor51s
-
(Locked)
Analyze memory usage with Diagnostics tools2m 3s
-
(Locked)
Analyze memory usage with Profiler1m 8s
-
(Locked)
View memory details1m 59s
-
-
-
-
-