Skip to content

Commit e1e7494

Browse files
Merge pull request #13822 from Mikejo5000/mikejo-br26
Add top insights information to .NET Object Allocation tool
2 parents 7bcf2e9 + 755cd0c commit e1e7494

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

docs/profiling/analyze-memory-usage.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Choose a memory analysis tool"
33
description: Learn about the tools you can use to find memory leaks and inefficient memory usage, tools such as the Memory Usage tool and the .NET Object Allocation tool.
4-
ms.date: "01/06/2024"
4+
ms.date: "04/14/2025"
55
ms.topic: "conceptual"
66
author: "mikejo5000"
77
ms.author: "mikejo"
@@ -24,6 +24,12 @@ C++ developers can use Memory Usage tool on debug or release builds:
2424
- [Measure memory usage on debug builds](../profiling/memory-usage.md)
2525
- [Analyze memory usage on release builds](../profiling/memory-usage-without-debugging2.md)
2626

27+
## Learn more
28+
29+
You may want to read about a general approach to optimizing code using the profiling tools. This article shows you how to use different tools, including the .NET Object Allocation tool, to optimize code.
30+
31+
[Case study: Beginner's guide to optimizing code](../profiling/optimize-code-using-profiling-tools.md)
32+
2733
## Blogs and videos
2834

2935
[Analyze CPU and memory while debugging](https://devblogs.microsoft.com/visualstudio/analyze-cpu-memory-while-debugging/)

docs/profiling/dotnet-alloc-tool.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Analyze memory usage for .NET objects
33
description: View how much memory your app uses and what code paths allocate the most memory by using the .NET Object Allocation tool.
4-
ms.date: 01/31/2024
4+
ms.date: 04/14/2025
55
ms.topic: how-to
66
helpviewer_keywords:
77
- memory allocation, memory usage
@@ -106,6 +106,12 @@ You can filter the tabular data to display activity for only a specified time ra
106106

107107
You can also zoom into or out of the graph.
108108

109+
::: moniker range=">=vs-2022"
110+
## Insights
111+
112+
If any insights show up in the **Insights** view, use the provided link to get more information about the issue identified. In addition, if you are using Copilot, the **Ask Copilot** button will open the Copilot chat window, and Copilot will provide suggestions based on your code and any identified issues.
113+
::: moniker-end
114+
109115
### Allocation
110116

111117
The **Allocation** view shows the location of objects that are allocating memory and how much memory those objects are allocating.

0 commit comments

Comments
 (0)