Select the Insights tab in the Managed types reports and it shows the applicable auto insights like Duplicate strings and Sparse arrays.
The Memory Analysis tool also gives multiple powerful built-in auto insights. Performing those actions while your app is running can eliminate the noise from the code that doesn't interest you and can significantly reduce the amount of time it takes you to diagnose an issue. Setting breakpoints, stepping, Break All, and other debugger actions can help you focus your performance investigations on the code paths that are most relevant. For information on choosing the best memory analysis tool for your needs, see Choose a memory analysis tool.Īlthough you can collect memory snapshots at any time in the Memory Usage tool, you can use the Visual Studio debugger to control how your application executes while investigating performance issues. For more information, see Run profiling tools with or without the debugger. You can also analyze memory usage without a debugger attached or by targeting a running app. The Memory Usage tool lets you take one or more snapshots of the managed and native memory heap to help understand the memory usage impact of object types. Applies to: Visual Studio Visual Studio for Mac Visual Studio Codeįind memory leaks and inefficient memory while you're debugging with the debugger-integrated Memory Usage diagnostic tool.