mirror of https://github.com/icsharpcode/ILSpy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
661 B
24 lines
661 B
using System; |
|
using System.Diagnostics.Tracing; |
|
|
|
namespace ICSharpCode.Decompiler.Instrumentation |
|
{ |
|
[EventSource(Name = "ICSharpCode.Decompiler")] |
|
public sealed class DecompilerEventSource : EventSource |
|
{ |
|
[Event(1, Level = EventLevel.Informational)] |
|
public void DoDecompileEvent(string eventName, long elapsedMilliseconds) |
|
{ |
|
WriteEvent(1, eventName, elapsedMilliseconds); |
|
} |
|
|
|
[Event(2, Level = EventLevel.Informational)] |
|
public void DoDecompileProperty(string propertyName, long elapsedMilliseconds) |
|
{ |
|
WriteEvent(2, propertyName, elapsedMilliseconds); |
|
} |
|
|
|
public static DecompilerEventSource Log = new DecompilerEventSource(); |
|
} |
|
|
|
}
|
|
|