Skip to content

Commit

Permalink
Add memory usage to sosstatus
Browse files Browse the repository at this point in the history
  • Loading branch information
mikem8361 committed Sep 1, 2022
1 parent b83e1e0 commit 71f6312
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// See the LICENSE file in the project root for more information.

using Microsoft.Diagnostics.DebugServices;
using System;

namespace Microsoft.Diagnostics.ExtensionCommands
{
Expand All @@ -27,6 +28,8 @@ public override void Invoke()
{
Write(Target.ToString());
Write(SymbolService.ToString());
long memoryUsage = GC.GetTotalMemory(forceFullCollection: false);
WriteLine($"GC memory usage: {memoryUsage}");
}
}
}
Expand Down

0 comments on commit 71f6312

Please sign in to comment.