Avoid boxing allocation and object[] allocation in BuildTraceFileName (#21752)
authorStephen Toub <stoub@microsoft.com>
Wed, 2 Jan 2019 18:41:48 +0000 (13:41 -0500)
committerGitHub <noreply@github.com>
Wed, 2 Jan 2019 18:41:48 +0000 (13:41 -0500)
src/System.Private.CoreLib/src/System/Diagnostics/Eventing/EventPipeController.cs

index d7a562f..aeaac8b 100644 (file)
@@ -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()