Skip to content

Commit 610f736

Browse files
committed
Add Server GC status to console output
1 parent 00bf488 commit 610f736

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Benchmarks/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

44
using System;
5+
using System.Runtime;
56
using System.Threading;
67
using Benchmarks.Configuration;
78
using Microsoft.AspNetCore.Hosting;
@@ -47,6 +48,7 @@ private static void StartInteractiveConsoleThread()
4748

4849
var interactiveThread = new Thread(() =>
4950
{
51+
Console.WriteLine($"Server GC is currently {(GCSettings.IsServerGC ? "ENABLED" : "DISABLED")}");
5052
Console.WriteLine("Press 'C' to force GC or any other key to display GC stats");
5153
Console.WriteLine();
5254

0 commit comments

Comments
 (0)