I have a demo solution which raises events by using System.Diagnostics.Tracing.EventSource class. The class I have is as below:-
[EventSource(Guid = "B6741490-9F53-4620-A45C-49004C1B4444", Name = "DemoEvent")]
sealed public class DemoEventSource : EventSource
{
[Event(1, Level = EventLevel.LogAlways, Keywords = EventKeywords.None)]
public void RaiseEvent()
{
this.WriteEvent(1, "Found");
}
}
I followed the steps given here to use PerfView tool to view the events being generated by this solution. I have given *DemoEvent
in the additionalProvider section of the PerfView. However, I am not able to see these events in the output of PerfView. Can anyone help me here?