相关疑难解决方法(0)

.NET跟踪:什么是"默认"监听器?

.NET中的每个跟踪示例都会删除" Default"侦听器:

<configuration>
  <system.diagnostics>
    <sources>
      <source name="TraceSourceApp" switchName="SourceSwitch" switchType="System.Diagnostics.SourceSwitch">
        <listeners>
          <add name="ConsoleListener"/>
          <add name="ETWListener"/>
          <remove name="Default"/>
        </listeners>
Run Code Online (Sandbox Code Playgroud)

什么是默认侦听器,为什么默认情况下会出现?

一个微软的家伙用不同的听众做了开销的基准测试:

Default                    |===============================14,196 ms=====/ /================> 
TextWriterTraceListener    |=========211 ms======>
EventProviderTraceListener |=> 77ms
Run Code Online (Sandbox Code Playgroud)

什么是Default跟踪侦听器,为什么它如此慢?是OutputDebugString吗?是OutputDebugString真是两个数量级比写入文件慢?

是否有一个TraceListener只使用的.NET OutputDebugString?

什么是默认的跟踪侦听器,为什么它如此缓慢,为什么它通常被删除,如果它是如此糟糕为什么它是默认值?

.net trace etw

24
推荐指数
1
解决办法
4657
查看次数

在发布版本中与OutputDebugString关联的开销

在发布版本中调用OutputDebugString会产生很大的开销吗?

windows performance winapi logging

18
推荐指数
7
解决办法
7715
查看次数

标签 统计

.net ×1

etw ×1

logging ×1

performance ×1

trace ×1

winapi ×1

windows ×1