From 435682ab167586d1119bfe264074e62bb7f738e9 Mon Sep 17 00:00:00 2001 From: MoAnsari Date: Fri, 13 Oct 2023 11:39:05 +0330 Subject: [PATCH] Fix problem with showing async method profile --- samples/Samples.ConsoleCore/Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/samples/Samples.ConsoleCore/Program.cs b/samples/Samples.ConsoleCore/Program.cs index 2c827a31..99b1d8b5 100644 --- a/samples/Samples.ConsoleCore/Program.cs +++ b/samples/Samples.ConsoleCore/Program.cs @@ -59,7 +59,9 @@ public static async Task TestAsync() } } - mp?.Stop(); + await mp!.StopAsync(); + WriteLine(MiniProfiler.Current.RenderPlainText()); + } public static void TestMultiThreaded()