diff options
Diffstat (limited to 'src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/TraceLogging/TraceLoggingEventTypes.cs')
-rw-r--r-- | src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/TraceLogging/TraceLoggingEventTypes.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/TraceLogging/TraceLoggingEventTypes.cs b/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/TraceLogging/TraceLoggingEventTypes.cs index 3c775a3ce..8887714fd 100644 --- a/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/TraceLogging/TraceLoggingEventTypes.cs +++ b/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/TraceLogging/TraceLoggingEventTypes.cs @@ -25,6 +25,9 @@ namespace System.Diagnostics.Tracing public class TraceLoggingEventTypes { internal readonly TraceLoggingTypeInfo[] typeInfos; +#if FEATURE_PERFTRACING + internal readonly string[] paramNames; +#endif internal readonly string name; internal readonly EventTags tags; internal readonly byte level; @@ -98,6 +101,9 @@ namespace System.Diagnostics.Tracing } this.typeInfos = MakeArray(paramInfos); +#if FEATURE_PERFTRACING + this.paramNames = MakeParamNameArray(paramInfos); +#endif this.name = name; this.tags = tags; this.level = Statics.DefaultLevel; @@ -248,5 +254,19 @@ namespace System.Diagnostics.Tracing return (TraceLoggingTypeInfo[])typeInfos.Clone(); ; } + +#if FEATURE_PERFTRACING + private static string[] MakeParamNameArray( + System.Reflection.ParameterInfo[] paramInfos) + { + string[] paramNames = new string[paramInfos.Length]; + for (int i = 0; i < paramNames.Length; i++) + { + paramNames[i] = paramInfos[i].Name; + } + + return paramNames; + } +#endif } } |