// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
+
namespace System.Diagnostics.Tracing
{
#if FEATURE_PERFTRACING
/// RuntimeEventSource is an EventSource that represents the ETW/EventPipe events emitted by the native runtime.
/// Most of RuntimeEventSource is auto-generated by scripts/genRuntimeEventSources.py based on the contents of the Microsoft-Windows-DotNETRuntime provider.
/// </summary>
+ [EventSource(Guid = "5E5BB766-BBFC-5662-0548-1D44FAD9BB56", Name = "Microsoft-Windows-DotNETRuntime")]
internal sealed partial class RuntimeEventSource : EventSource
{
+ // The RuntimeEventSource GUID is {5e5bb766-bbfc-5662-0548-1d44fad9bb56}
+ private RuntimeEventSource() : base(new Guid(0x5e5bb766, 0xbbfc, 0x5662, 0x05, 0x48, 0x1d, 0x44, 0xfa, 0xd9, 0xbb, 0x56), "Microsoft-Windows-DotNETRuntime") { }
+
/// <summary>
/// Dispatch a single event with the specified event ID and payload.
/// </summary>
increaseTabLevel()
className = providerNameToClassNameMap[providerName]
- writeOutput(outputFile, "[EventSource(Name = \"" + providerName + "\")]\n")
writeOutput(outputFile, "internal sealed partial class " + className + " : EventSource\n")
writeOutput(outputFile, "{\n")
increaseTabLevel()