Microsoft

Diagnosing memory issues with the new Memory Usage Tool in Visual Studio

Apr 2, 2014Harikrishna Menon
Diagnosing memory issues with the new Memory Usage Tool in Visual Studio
SummaryAI, from the source post

Introduces the new Memory Usage tool within the Visual Studio 2013 Performance and Diagnostics hub for diagnosing memory issues in Windows Store and Windows Phone Store apps (C#/VB/C++ and XAML). The tool supports three profiling modes: Managed, Native, and Mixed. It provides a live graph of memory consumption, a memory threshold indicator for phone devices, and snapshot-based profiling. The post details how to use snapshots to analyze managed heap size, object counts, and identify leaks by examining GC roots and referenced objects. It also covers troubleshooting native memory issues and provides a concrete example of fixing a memory leak in a sample application by unregistering an event handler.

More from the .NET Memory Analysis in Production trail