Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/System.Private.CoreLib/src/System/Diagnostics/Tracing')
-rw-r--r--src/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource_CoreRT.cs7
-rw-r--r--src/System.Private.CoreLib/src/System/Diagnostics/Tracing/UnsafeNativeMethods.cs2
2 files changed, 6 insertions, 3 deletions
diff --git a/src/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource_CoreRT.cs b/src/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource_CoreRT.cs
index fc7e17d2a..72ce7c99f 100644
--- a/src/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource_CoreRT.cs
+++ b/src/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource_CoreRT.cs
@@ -178,6 +178,9 @@ namespace System.Diagnostics.Tracing
this.Tags = tags;
this.EnabledForAnyListener = enabledForAnyListener;
this.EnabledForETW = enabledForETW;
+#if FEATURE_PERFTRACING
+ this.EnabledForEventPipe = false;
+#endif
this.TriggersActivityTracking = 0;
this.Name = name;
this.Message = message;
@@ -338,10 +341,10 @@ namespace System.Diagnostics.Tracing
if (fmt != null)
return string.Format(fmt, args);
- string sargs = String.Empty;
+ string sargs = string.Empty;
foreach(var arg in args)
{
- if (sargs != String.Empty)
+ if (sargs != string.Empty)
sargs += ", ";
sargs += arg.ToString();
}
diff --git a/src/System.Private.CoreLib/src/System/Diagnostics/Tracing/UnsafeNativeMethods.cs b/src/System.Private.CoreLib/src/System/Diagnostics/Tracing/UnsafeNativeMethods.cs
index 3d2e41eba..c070027e7 100644
--- a/src/System.Private.CoreLib/src/System/Diagnostics/Tracing/UnsafeNativeMethods.cs
+++ b/src/System.Private.CoreLib/src/System/Diagnostics/Tracing/UnsafeNativeMethods.cs
@@ -235,7 +235,7 @@ namespace Microsoft.Win32
[System.Security.SecuritySafeCritical]
// Gets an error message for a Win32 error code.
- internal static String GetMessage(int errorCode)
+ internal static string GetMessage(int errorCode)
{
#if FEATURE_MANAGED_ETW
return Interop.Kernel32.GetMessage(errorCode);