mirror of https://github.com/icsharpcode/ILSpy.git
3 changed files with 37 additions and 0 deletions
@ -0,0 +1,24 @@
@@ -0,0 +1,24 @@
|
||||
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(); |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue