Ejemplo n.º 1
0
 internal static void EnableToETW(bool enabled)
 {
     if (enabled)
     {
         AsyncCausalityTracer.f_LoggingOn |= AsyncCausalityTracer.Loggers.ETW;
     }
     else
     {
         AsyncCausalityTracer.f_LoggingOn &= ~AsyncCausalityTracer.Loggers.ETW;
     }
 }
Ejemplo n.º 2
0
 private static void TracingStatusChangedHandler(object sender, TracingStatusChangedEventArgs args)
 {
     if (args.Enabled)
     {
         AsyncCausalityTracer.f_LoggingOn |= AsyncCausalityTracer.Loggers.CausalityTracer;
     }
     else
     {
         AsyncCausalityTracer.f_LoggingOn &= ~AsyncCausalityTracer.Loggers.CausalityTracer;
     }
 }
Ejemplo n.º 3
0
 private static void LogAndDisable(Exception ex)
 {
     AsyncCausalityTracer.f_LoggingOn = (AsyncCausalityTracer.Loggers) 0;
     Debugger.Log(0, "AsyncCausalityTracer", ex.ToString());
 }