0

I have a custom EventSource that I am using to log an ETW event:

[EventSource(Name = "MyEventSource")]
public class MyEventSource : EventSource
{
    [Event(1, Message = "Test", Level = EventLevel.Informational)]
    public void Run(long fundId, DateTime date)
    {
        if (IsEnabled()) WriteEvent(1, fundId, date);
    }

    public static MyEventSource Log = new MyEventSource();
}

I have added my EventSource details to the Markers tab of the Advanced Settings dialog (from the Analyze menu in VS 2013) with it's correct Name and Procider GUID (I know these are correct as I can see the events in PerfView) and logging level = Everything.

When I run Concurrency Visualizer from Visual Studio I am unable to see my custom EventSource events though. However I can see other event sources (eg. some from the System.Collections.Concurrent provider)

Any help greatly appreciated, thanks.

4

1 回答 1

0

这是Zelestor的回答

我最终解决了这个问题 - EventSource 不支持 DateTime 类型

于 2014-10-25T16:05:51.203 回答