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);
     }
 }
Exemplo n.º 2
0
 internal static void TraceOperationRelation(CausalityTraceLevel traceLevel, int taskId, CausalityRelation relation)
 {
     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);
     }
 }
Exemplo n.º 3
0
 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);
     }
 }