You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The **Memory Usage** tool monitors your app's memory use. You can use the tool to study the real-time memory effects of scenarios you're actively developing in Visual Studio. You can take detailed snapshots of the app's memory states, and compare snapshots to find the root causes of memory issues. The Memory Usage tool is supported on .NET, ASP.NET, C++, or mixed mode (.NET and native) apps.
19
20
20
21
The Memory Usage tool can run [on release or debug builds](../profiling/running-profiling-tools-with-or-without-the-debugger.md). In this article, we show how to use the Memory Usage tool in the Visual Studio **Performance Profiler**, which is recommended for release builds. For information on choosing the best memory analysis tool for your needs, see [Choose a memory analysis tool](../profiling/analyze-memory-usage.md).
21
22
23
+
::: zone pivot="programming-language-dotnet,programming-language-dotnetf,programming-language-cpp"
22
24
## Memory Usage diagnostic sessions
23
25
24
26
**To start a Memory Usage diagnostic session:**
@@ -40,6 +42,7 @@ The Memory Usage tool can run [on release or debug builds](../profiling/running-
40
42
::: moniker range="vs-2019"
41
43

42
44
::: moniker-end
45
+
::: zone-end
43
46
44
47
### Monitor memory use
45
48
@@ -121,6 +124,7 @@ For C++, the **Objects (Diff)** column is named **Allocations (Diff)**.
121
124
||The difference between the total number of memory objects in this snapshot and the previous snapshot. Select this link to display a snapshot diff report. It’s sorted by the difference in the total count of instances of the types.|
122
125
::: moniker-end
123
126
127
+
::: zone pivot="programming-language-dotnet,programming-language-dotnetf"
@@ -142,7 +146,9 @@ Many types in apps aren't required for app developers to investigate memory issu
142
146
- <aname="BKMK_Just_My_Code"></a> Select **Show Just My Code** in the **Filter** dropdown to hide most instances that are generated by external code. External types belong to the operating system or framework components, or are generated by the compiler.
143
147
144
148
- <aname="BKMK_Collapse_Small_Objects"></a> Select **Collapse Small Objects** in the **Filter** dropdown to hide types whose **Size (Bytes)** is less than 0.5 percent of the total memory.
Copy file name to clipboardExpand all lines: docs/profiling/profiling-feature-tour.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ Application performance measuring tools are essential for developers who want to
21
21
22
22
For help with choosing the correct tool, or to see profiling tool support for different app types, see [Which tool should I use?](../profiling/choose-performance-tool.md) For a tutorial that shows a general approach to optimizing code using the profiling tools, see [Case study: Beginner's guide to optimizing code](../profiling/optimize-code-using-profiling-tools.md).
23
23
24
-
::: zone pivot="programming-language-dotnet,programming-language-cpp,programming-language-all"
24
+
::: zone pivot="programming-language-dotnet,programming-language-dotnetf,programming-language-cpp"
25
25
## <aname="post_mortem"></a> Measure performance in release builds
26
26
27
27
Tools in the Performance Profiler are intended to provide analysis for **Release** builds. In the Performance Profiler, you can collect diagnostic info while the app is running, and then examine the collected information after the app is stopped (a post-mortem analysis).
@@ -271,7 +271,7 @@ The tool shows each event in a list view. Columns provide information about each
271
271
You can programatically create custom events that appear as icons in the timeline graphs such as the CPU utilization and memory usage timeline graphs. For more information, see [Add user marks to timeline](../profiling/add-timeline-graph-user-marks.md).
272
272
::: moniker-end
273
273
274
-
::: zone pivot="programming-language-dotnet"
274
+
::: zone pivot="programming-language-dotnet,programming-language-dotnetf"
275
275
## Analyze resource consumption (XAML)
276
276
277
277
In XAML apps, such as Windows desktop WPF apps and UWP apps, you can analyze resource consumption using the Application Timeline tool. For example, you can analyze the time spent by your application preparing UI frames (layout and render), servicing network and disk requests, and in scenarios like application startup, page load, and Window resize. To use the tool, choose **Application Timeline** in the Performance Profiler, and then choose **Start**. In your app, go through the scenario with a suspected resource consumption issue, and then choose **Stop collection** to generate the report.
0 commit comments