From 85816f2bb0527790ae2d011bd38d09de23871ae4 Mon Sep 17 00:00:00 2001 From: Stephen Owen Date: Fri, 11 Jul 2025 11:56:48 -0400 Subject: [PATCH 1/2] Update debug-memory-leak to add now needed step Users will need to install the dotnet counters tool before invoking that, adding that step to improve this guide. --- docs/core/diagnostics/debug-memory-leak.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/core/diagnostics/debug-memory-leak.md b/docs/core/diagnostics/debug-memory-leak.md index 4176e9e15fd3c..57555092afd50 100644 --- a/docs/core/diagnostics/debug-memory-leak.md +++ b/docs/core/diagnostics/debug-memory-leak.md @@ -56,6 +56,14 @@ The output should be similar to: 4807 DiagnosticScena /home/user/git/samples/core/diagnostics/DiagnosticScenarios/bin/Debug/netcoreapp3.0/DiagnosticScenarios ``` + +> [!NOTE] +> If the above command does not work, or is not found, you likely need to install the `dotnet-counters` tool first, with the following command. + +```console +dotnet tool install --global dotnet-counters +``` + Now, check managed memory usage with the [dotnet-counters](dotnet-counters.md) tool. The `--refresh-interval` specifies the number of seconds between refreshes: ```console From 6328a1624f0efae914009837586f8c240a3bf313 Mon Sep 17 00:00:00 2001 From: Stephen Owen Date: Thu, 17 Jul 2025 11:28:43 -0400 Subject: [PATCH 2/2] Update docs/core/diagnostics/debug-memory-leak.md Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com> --- docs/core/diagnostics/debug-memory-leak.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/core/diagnostics/debug-memory-leak.md b/docs/core/diagnostics/debug-memory-leak.md index 57555092afd50..0059e1c90e22f 100644 --- a/docs/core/diagnostics/debug-memory-leak.md +++ b/docs/core/diagnostics/debug-memory-leak.md @@ -58,11 +58,11 @@ The output should be similar to: > [!NOTE] -> If the above command does not work, or is not found, you likely need to install the `dotnet-counters` tool first, with the following command. - -```console -dotnet tool install --global dotnet-counters -``` +> If the previous command doesn't work or isn't found, you likely need to install the `dotnet-counters` tool first. Use the following command: +> +> ```console +> dotnet tool install --global dotnet-counters +> ``` Now, check managed memory usage with the [dotnet-counters](dotnet-counters.md) tool. The `--refresh-interval` specifies the number of seconds between refreshes: