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

LinkerEventSource.cs « Linker « linker « src - github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b939f9bfd3b5bff1df2819c8c1a3607fce1f1e21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Diagnostics.Tracing;

namespace Mono.Linker
{
	[EventSource (Name = "Microsoft-DotNET-Linker")]
	sealed class LinkerEventSource : EventSource
	{
		public static LinkerEventSource Log { get; } = new LinkerEventSource ();

		[Event (1)]
		public void LinkerStart (string args) => WriteEvent (1, args);

		[Event (2)]
		public void LinkerStop () => WriteEvent (2);

		[Event (3, Keywords = Keywords.Step)]
		public void LinkerStepStart (string stepName) => WriteEvent (3, stepName);

		[Event (4, Keywords = Keywords.Step)]
		public void LinkerStepStop (string stepName) => WriteEvent (4, stepName);

		public static class Keywords
		{
			public const EventKeywords Step = (EventKeywords) (1 << 1);
		}
	}
}