From 0c5ab47942683e87ddc0997636f427d8bd9eb3ef Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Wed, 2 Jan 2019 13:41:48 -0500 Subject: [PATCH] Avoid boxing allocation and object[] allocation in BuildTraceFileName (#21752) --- .../src/System/Diagnostics/Eventing/EventPipeController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/System.Private.CoreLib/src/System/Diagnostics/Eventing/EventPipeController.cs b/src/System.Private.CoreLib/src/System/Diagnostics/Eventing/EventPipeController.cs index d7a562f..aeaac8b 100644 --- a/src/System.Private.CoreLib/src/System/Diagnostics/Eventing/EventPipeController.cs +++ b/src/System.Private.CoreLib/src/System/Diagnostics/Eventing/EventPipeController.cs @@ -290,7 +290,7 @@ namespace System.Diagnostics.Tracing private static string BuildTraceFileName() { - return GetAppName() + "." + Win32Native.GetCurrentProcessId() + NetPerfFileExtension; + return GetAppName() + "." + Win32Native.GetCurrentProcessId().ToString() + NetPerfFileExtension; } private static string GetAppName() -- 2.7.4