public void TraceOperationRelation(int TaskID, CausalityRelation Relation)
 {
     if (base.IsEnabled() && base.IsEnabled(EventLevel.Informational, (EventKeywords)16L))
     {
         base.WriteEvent(16, TaskID, (int)Relation);
     }
 }
Beispiel #2
0
 public void TraceOperationRelation(int TaskID, CausalityRelation Relation)
 {
     if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.AsyncCausalityRelation))
     {
         WriteEvent(TRACEOPERATIONRELATION_ID, TaskID, (int)Relation);                // optmized overload for this exists
     }
 }
 public static void TraceOperationRelation(Task task, CausalityRelation relation)
 {
     if (LoggingOn)
     {
         WinRTInterop.Callbacks.TraceOperationRelation((int)CausalityTraceLevel.Important, (int)CausalitySource.Library, s_platformId, task.OperationId(), (int)relation);
     }
 }
Beispiel #4
0
 public void TraceOperationRelation(int TaskID, CausalityRelation Relation)
 {
     if (!this.IsEnabled() || !this.IsEnabled(EventLevel.Informational, (EventKeywords)16))
     {
         return;
     }
     this.WriteEvent(16, TaskID, (int)Relation);
 }
 internal static void TraceOperationRelation(Task task, CausalityRelation relation)
 {
     try
     {
         int taskId = task.Id;
         if ((f_LoggingOn & Loggers.ETW) != 0)
         {
             TplEventSource.Log.TraceOperationRelation(taskId, relation);
         }
         if ((f_LoggingOn & Loggers.CausalityTracer) != 0)
         {
             s_TracerFactory.TraceOperationRelation(WFD.CausalityTraceLevel.Important, s_CausalitySource, s_PlatformId, GetOperationId((uint)taskId), (WFD.CausalityRelation)relation);
         }
     }
     catch (Exception ex)
     {
         //view function comment
         LogAndDisable(ex);
     }
 }
        internal static void TraceOperationRelation(CausalityTraceLevel traceLevel, int taskId, CausalityRelation relation)
        {
#if FEATURE_COMINTEROP
            try
            {
                if ((f_LoggingOn & Loggers.ETW) != 0)
                    TplEtwProvider.Log.TraceOperationRelation(taskId, relation);
                if ((f_LoggingOn & Loggers.CausalityTracer) != 0)
                    s_TracerFactory.TraceOperationRelation((WFD.CausalityTraceLevel)traceLevel, s_CausalitySource, s_PlatformId, GetOperationId((uint)taskId), (WFD.CausalityRelation)relation);
            }
            catch(Exception ex)
            {
                //view function comment
                LogAndDisable(ex);
            }
#endif
        }
        internal static void TraceOperationRelation(CausalityTraceLevel traceLevel, int taskId, CausalityRelation relation)
        {
#if FEATURE_COMINTEROP
            try
            {
                if ((f_LoggingOn & Loggers.ETW) != 0)
                {
                    TplEtwProvider.Log.TraceOperationRelation(taskId, relation);
                }
                if ((f_LoggingOn & Loggers.CausalityTracer) != 0)
                {
                    s_TracerFactory.TraceOperationRelation((WFD.CausalityTraceLevel)traceLevel, s_CausalitySource, s_PlatformId, GetOperationId((uint)taskId), (WFD.CausalityRelation)relation);
                }
            }
            catch (Exception ex)
            {
                //view function comment
                LogAndDisable(ex);
            }
#endif
        }
Beispiel #8
0
 public abstract void TraceOperationRelation(CausalityTraceLevel traceLevel, CausalitySource source, Guid platformId, ulong operationId, CausalityRelation relation);
Beispiel #9
0
 public abstract void TraceOperationRelation(CausalityTraceLevel traceLevel, CausalitySource source, Guid platformId, ulong operationId, CausalityRelation relation);
Beispiel #10
0
 public static void TraceOperationRelation(CausalityTraceLevel traceLevel, Task task, CausalityRelation relation)
 {
 }
 public static void TraceOperationRelation(Task task, CausalityRelation relation)
 {
 }
Beispiel #12
0
 public void TraceOperationRelation(int TaskID, CausalityRelation Relation)
 {
     if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.AsyncCausalityRelation)) 
         WriteEvent(TRACEOPERATIONRELATION_ID, TaskID,(int) Relation);                // optmized overload for this exists
 }
 internal static void TraceOperationRelation(CausalityTraceLevel traceLevel, int taskId, CausalityRelation relation)
 {
     try
     {
         if ((AsyncCausalityTracer.f_LoggingOn & AsyncCausalityTracer.Loggers.ETW) != (AsyncCausalityTracer.Loggers) 0)
         {
             TplEtwProvider.Log.TraceOperationRelation(taskId, relation);
         }
         if ((AsyncCausalityTracer.f_LoggingOn & AsyncCausalityTracer.Loggers.CausalityTracer) == (AsyncCausalityTracer.Loggers) 0)
         {
             return;
         }
         AsyncCausalityTracer.s_TracerFactory.TraceOperationRelation((Windows.Foundation.Diagnostics.CausalityTraceLevel)traceLevel, CausalitySource.Library, AsyncCausalityTracer.s_PlatformId, AsyncCausalityTracer.GetOperationId((uint)taskId), (Windows.Foundation.Diagnostics.CausalityRelation)relation);
     }
     catch (Exception ex)
     {
         AsyncCausalityTracer.LogAndDisable(ex);
     }
 }
 internal static void TraceOperationRelation(CausalityTraceLevel traceLevel, int taskId, CausalityRelation relation)
 {
     if (LoggingOn)
     {
         s_TracerFactory.TraceOperationRelation((WFD.CausalityTraceLevel)traceLevel, s_CausalitySource, s_PlatformId, GetOperationId((uint)taskId), (WFD.CausalityRelation)relation);
     }
 }
 internal static void TraceOperationRelation(CausalityTraceLevel traceLevel, int taskId, CausalityRelation relation)
 {
     if (LoggingOn)
     {
         s_TracerFactory.TraceOperationRelation((WFD.CausalityTraceLevel)traceLevel, s_CausalitySource, s_PlatformId, GetOperationId((uint)taskId), (WFD.CausalityRelation)relation);
     }
 }