Skip to content

Commit 966b55f

Browse files
committed
edits
1 parent cd91d82 commit 966b55f

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

docs/profiling/memory-usage-without-debugging2.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ author: mikejo5000
1212
ms.author: mikejo
1313
manager: mijacobs
1414
ms.subservice: debug-diagnostics
15+
zone_pivot_groups: programming-languages-set-two
1516
---
1617
# Analyze memory usage in release builds (C#, Visual Basic, C++, F#)
1718

1819
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.
1920

2021
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).
2122

23+
::: zone pivot="programming-language-dotnet,programming-language-dotnetf,programming-language-cpp"
2224
## Memory Usage diagnostic sessions
2325

2426
**To start a Memory Usage diagnostic session:**
@@ -40,6 +42,7 @@ The Memory Usage tool can run [on release or debug builds](../profiling/running-
4042
::: moniker range="vs-2019"
4143
![Start a Memory Usage diagnostic session.](../profiling/media/memory-usage-start-diagnostics-session.png "Start a Memory Usage diagnostic session")
4244
::: moniker-end
45+
::: zone-end
4346

4447
### Monitor memory use
4548

@@ -121,6 +124,7 @@ For C++, the **Objects (Diff)** column is named **Allocations (Diff)**.
121124
|![Step 4](../profiling/media/process-guide-4.png "Process Guide-4")|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.|
122125
::: moniker-end
123126

127+
::: zone pivot="programming-language-dotnet,programming-language-dotnetf"
124128
## Managed types reports
125129

126130
[!INCLUDE [managed-types-report](../profiling/includes/managed-types-report.md)]
@@ -142,7 +146,9 @@ Many types in apps aren't required for app developers to investigate memory issu
142146
- <a name="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.
143147

144148
- <a name="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.
149+
::: zone-end
145150

151+
::: zone pivot="programming-language-cpp"
146152
## Native types reports
147153

148154
[!INCLUDE [native-types-report](../profiling/includes/native-types-report.md)]
@@ -152,6 +158,7 @@ Many types in apps aren't required for app developers to investigate memory issu
152158

153159
[!INCLUDE [memory-usage-insights](../profiling/includes/memory-usage-insights.md)]
154160
::: moniker-end
161+
::: zone-end
155162

156163
## Change (Diff) reports
157164

docs/profiling/profiling-feature-tour.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Application performance measuring tools are essential for developers who want to
2121

2222
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).
2323

24-
::: zone pivot="programming-language-dotnet,programming-language-cpp,programming-language-all"
24+
::: zone pivot="programming-language-dotnet,programming-language-dotnetf,programming-language-cpp"
2525
## <a name="post_mortem"></a> Measure performance in release builds
2626

2727
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
271271
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).
272272
::: moniker-end
273273

274-
::: zone pivot="programming-language-dotnet"
274+
::: zone pivot="programming-language-dotnet,programming-language-dotnetf"
275275
## Analyze resource consumption (XAML)
276276

277277
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.

docs/zone-pivot-groups.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ groups:
2020
pivots:
2121
- id: programming-language-dotnet
2222
title: .NET
23+
- id: programming-language-dotnetf
24+
title: .NET Framework
2325
- id: programming-language-cpp
2426
title: C++
25-
- id: programming-language-all
26-
title: Other languages
2727
# Notice how the ids, titles, and prompts are
2828
# consistent and in order.
2929
# Note: This set is not used currently, but is present as an example.

0 commit comments

Comments
 (0)