2014-10-20 35 views
0

我有我使用記錄一個ETW事件自定義的EventSource:併發可視化工具無法看到自定義ETW事件

[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(); 
} 

我已經加入我的EventSource的細節,高級設置對話框的標記選項卡(從在VS 2013中的分析菜單)和它的正確名稱和Procider GUID(我知道這些都是正確的,因爲我可以在PerfView中看到事件)和日誌記錄級別=一切。

當我從Visual Studio運行Concurrency Visualizer時,我無法看到自定義的EventSource事件。但我可以看到其他事件源(例如,一些來自System.Collections.Concurrent提供程序)

任何幫助非常感謝,謝謝。

+1

我到底工作了這一點 - DateTime類型不EventSource的支持 - 有關更多信息,請參閱http://entlib.codeplex.com/discussions/539531。 – Zelestor 2014-10-20 20:34:22

+0

你應該發佈這個答案而不是評論。 – magicandre1981 2014-10-21 04:03:11

回答