public static void TraceSynchronousWorkStart(Task task, CausalitySynchronousWork work)
 {
     if (LoggingOn)
     {
         WinRTInterop.Callbacks.TraceSynchronousWorkStart((int)CausalityTraceLevel.Required, (int)CausalitySource.Library, s_platformId, task.OperationId(), (int)work);
     }
 }
 public void TraceSynchronousWorkBegin(int TaskID, CausalitySynchronousWork Work)
 {
     if (base.IsEnabled() && base.IsEnabled(EventLevel.Informational, (EventKeywords)32L))
     {
         base.WriteEvent(17, TaskID, (int)Work);
     }
 }
 public static void TraceSynchronousWorkCompletion(CausalitySynchronousWork work)
 {
     if (LoggingOn)
     {
         WinRTInterop.Callbacks.TraceSynchronousWorkCompletion((int)CausalityTraceLevel.Required, (int)CausalitySource.Library, (int)work);
     }
 }
Пример #4
0
 public void TraceSynchronousWorkBegin(int TaskID, CausalitySynchronousWork Work)
 {
     if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.AsyncCausalitySynchronousWork))
     {
         WriteEvent(TRACESYNCHRONOUSWORKSTART_ID, TaskID, (int)Work);               // optmized overload for this exists
     }
 }
Пример #5
0
 public void TraceSynchronousWorkBegin(int TaskID, CausalitySynchronousWork Work)
 {
     if (!this.IsEnabled() || !this.IsEnabled(EventLevel.Informational, (EventKeywords)32))
     {
         return;
     }
     this.WriteEvent(17, TaskID, (int)Work);
 }
 public unsafe void TraceSynchronousWorkEnd(CausalitySynchronousWork Work)
 {
     if (base.IsEnabled() && base.IsEnabled(EventLevel.Informational, (EventKeywords)32L))
     {
         EventSource.EventData *ptr = stackalloc EventSource.EventData[checked (unchecked ((UIntPtr)1) * (UIntPtr)sizeof(EventSource.EventData))];
         ptr->Size        = 4;
         ptr->DataPointer = (IntPtr)((void *)(&Work));
         base.WriteEventCore(18, 1, ptr);
     }
 }
Пример #7
0
 public unsafe void TraceSynchronousWorkEnd(CausalitySynchronousWork Work)
 {
     if (!this.IsEnabled() || !this.IsEnabled(EventLevel.Informational, (EventKeywords)32))
     {
         return;
     }
     EventSource.EventData *data = stackalloc EventSource.EventData[1];
     data->Size        = 4;
     data->DataPointer = (IntPtr)((void *)&Work);
     this.WriteEventCore(18, 1, data);
 }
Пример #8
0
        public void TraceSynchronousWorkEnd(CausalitySynchronousWork Work)
        {
            if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.AsyncCausalitySynchronousWork))
            {
                unsafe
                {
                    EventData *eventPayload = stackalloc EventData[1];
                    eventPayload[0].Size        = sizeof(int);
                    eventPayload[0].DataPointer = ((IntPtr)(&Work));

                    WriteEventCore(TRACESYNCHRONOUSWORKSTOP_ID, 1, eventPayload);
                }
            }
        }
Пример #9
0
 internal static void TraceSynchronousWorkCompletion(CausalitySynchronousWork work)
 {
     try
     {
         if ((f_LoggingOn & Loggers.ETW) != 0)
         {
             TplEventSource.Log.TraceSynchronousWorkEnd(work);
         }
         if ((f_LoggingOn & Loggers.CausalityTracer) != 0)
         {
             s_TracerFactory.TraceSynchronousWorkCompletion(WFD.CausalityTraceLevel.Required, s_CausalitySource, (WFD.CausalitySynchronousWork)work);
         }
     }
     catch (Exception ex)
     {
         //view function comment
         LogAndDisable(ex);
     }
 }
Пример #10
0
 internal static void TraceSynchronousWorkStart(Task task, CausalitySynchronousWork work)
 {
     try
     {
         int taskId = task.Id;
         if ((f_LoggingOn & Loggers.ETW) != 0)
         {
             TplEventSource.Log.TraceSynchronousWorkBegin(taskId, work);
         }
         if ((f_LoggingOn & Loggers.CausalityTracer) != 0)
         {
             s_TracerFactory.TraceSynchronousWorkStart(WFD.CausalityTraceLevel.Required, s_CausalitySource, s_PlatformId, GetOperationId((uint)taskId), (WFD.CausalitySynchronousWork)work);
         }
     }
     catch (Exception ex)
     {
         //view function comment
         LogAndDisable(ex);
     }
 }
 internal static void TraceSynchronousWorkStart(CausalityTraceLevel traceLevel, int taskId, CausalitySynchronousWork work)
 {
     if (LoggingOn)
     {
         s_TracerFactory.TraceSynchronousWorkStart((WFD.CausalityTraceLevel)traceLevel, s_CausalitySource, s_PlatformId, GetOperationId((uint)taskId), (WFD.CausalitySynchronousWork)work);
     }
 }
 internal static void TraceSynchronousWorkCompletion(CausalityTraceLevel traceLevel, CausalitySynchronousWork work)
 {
     if (LoggingOn)
     {
         s_TracerFactory.TraceSynchronousWorkCompletion((WFD.CausalityTraceLevel)traceLevel, s_CausalitySource, (WFD.CausalitySynchronousWork)work);
     }
 }
Пример #13
0
        internal static void TraceSynchronousWorkCompletion(CausalityTraceLevel traceLevel, CausalitySynchronousWork work)
        {
#if FEATURE_COMINTEROP
            try
            {
                if ((f_LoggingOn & Loggers.ETW) != 0)
                {
                    TplEtwProvider.Log.TraceSynchronousWorkEnd(work);
                }
                if ((f_LoggingOn & Loggers.CausalityTracer) != 0)
                {
                    s_TracerFactory.TraceSynchronousWorkCompletion((WFD.CausalityTraceLevel)traceLevel, s_CausalitySource, (WFD.CausalitySynchronousWork)work);
                }
            }
            catch (Exception ex)
            {
                //view function comment
                LogAndDisable(ex);
            }
#endif
        }
Пример #14
0
        internal static void TraceSynchronousWorkStart(CausalityTraceLevel traceLevel, int taskId, CausalitySynchronousWork work)
        {
#if FEATURE_COMINTEROP
            try
            {
                if ((f_LoggingOn & Loggers.ETW) != 0)
                {
                    TplEtwProvider.Log.TraceSynchronousWorkBegin(taskId, work);
                }
                if ((f_LoggingOn & Loggers.CausalityTracer) != 0)
                {
                    s_TracerFactory.TraceSynchronousWorkStart((WFD.CausalityTraceLevel)traceLevel, s_CausalitySource, s_PlatformId, GetOperationId((uint)taskId), (WFD.CausalitySynchronousWork)work);
                }
            }
            catch (Exception ex)
            {
                //view function comment
                LogAndDisable(ex);
            }
#endif
        }
Пример #15
0
 public abstract void TraceSynchronousWorkStart(CausalityTraceLevel traceLevel, CausalitySource source, Guid platformId, ulong operationId, CausalitySynchronousWork work);
Пример #16
0
 public abstract void TraceSynchronousWorkCompletion(CausalityTraceLevel traceLevel, CausalitySource source, CausalitySynchronousWork work);
Пример #17
0
 public void TraceSynchronousWorkBegin(int TaskID, CausalitySynchronousWork Work)
 {
     if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.AsyncCausalitySynchronousWork)) 
         WriteEvent(TRACESYNCHRONOUSWORKSTART_ID, TaskID,(int) Work);               // optmized overload for this exists
 }
Пример #18
0
 public abstract void TraceSynchronousWorkCompletion(CausalityTraceLevel traceLevel, CausalitySource source, CausalitySynchronousWork work);
Пример #19
0
 internal static void TraceSynchronousWorkStart(CausalityTraceLevel traceLevel, int taskId, CausalitySynchronousWork work)
 {
     if (LoggingOn)
     {
         s_TracerFactory.TraceSynchronousWorkStart((WFD.CausalityTraceLevel)traceLevel, s_CausalitySource, s_PlatformId, GetOperationId((uint)taskId), (WFD.CausalitySynchronousWork)work);
     }
 }
Пример #20
0
 internal static void TraceSynchronousWorkCompletion(CausalityTraceLevel traceLevel, CausalitySynchronousWork work)
 {
     if (LoggingOn)
     {
         s_TracerFactory.TraceSynchronousWorkCompletion((WFD.CausalityTraceLevel)traceLevel, s_CausalitySource, (WFD.CausalitySynchronousWork)work);
     }
 }
Пример #21
0
 internal static void TraceSynchronousWorkStart(CausalityTraceLevel traceLevel, int taskId, CausalitySynchronousWork work)
 {
     try
     {
         if ((AsyncCausalityTracer.f_LoggingOn & AsyncCausalityTracer.Loggers.ETW) != (AsyncCausalityTracer.Loggers) 0)
         {
             TplEtwProvider.Log.TraceSynchronousWorkBegin(taskId, work);
         }
         if ((AsyncCausalityTracer.f_LoggingOn & AsyncCausalityTracer.Loggers.CausalityTracer) == (AsyncCausalityTracer.Loggers) 0)
         {
             return;
         }
         AsyncCausalityTracer.s_TracerFactory.TraceSynchronousWorkStart((Windows.Foundation.Diagnostics.CausalityTraceLevel)traceLevel, CausalitySource.Library, AsyncCausalityTracer.s_PlatformId, AsyncCausalityTracer.GetOperationId((uint)taskId), (Windows.Foundation.Diagnostics.CausalitySynchronousWork)work);
     }
     catch (Exception ex)
     {
         AsyncCausalityTracer.LogAndDisable(ex);
     }
 }
        internal static void TraceSynchronousWorkStart(CausalityTraceLevel traceLevel, int taskId, CausalitySynchronousWork work)
        {
#if FEATURE_COMINTEROP
            try
            {
                if ((f_LoggingOn & Loggers.ETW) != 0)
                    TplEtwProvider.Log.TraceSynchronousWorkBegin(taskId, work);
                if ((f_LoggingOn & Loggers.CausalityTracer) != 0)
                    s_TracerFactory.TraceSynchronousWorkStart((WFD.CausalityTraceLevel)traceLevel, s_CausalitySource, s_PlatformId, GetOperationId((uint)taskId), (WFD.CausalitySynchronousWork)work);
            }
            catch(Exception ex)
            {
                //view function comment
                LogAndDisable(ex);
            }
#endif
        }
Пример #23
0
 public static void TraceSynchronousWorkStart(Task task, CausalitySynchronousWork work)
 {
 }
Пример #24
0
        public void TraceSynchronousWorkEnd(CausalitySynchronousWork Work)
        {
            if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.AsyncCausalitySynchronousWork)) 
            {
                unsafe
                {
                    EventData* eventPayload = stackalloc EventData[1];
                    eventPayload[0].Size = sizeof(int);
                    eventPayload[0].DataPointer = ((IntPtr) (&Work));

                    WriteEventCore(TRACESYNCHRONOUSWORKSTOP_ID, 1, eventPayload);
                }
            }                
        }
Пример #25
0
 public abstract void TraceSynchronousWorkStart(CausalityTraceLevel traceLevel, CausalitySource source, Guid platformId, ulong operationId, CausalitySynchronousWork work);
Пример #26
0
 public static void TraceSynchronousWorkStart(CausalityTraceLevel traceLevel, Task task, CausalitySynchronousWork work)
 {
 }
Пример #27
0
 internal static void TraceSynchronousWorkCompletion(CausalityTraceLevel traceLevel, CausalitySynchronousWork work)
 {
     try
     {
         if ((AsyncCausalityTracer.f_LoggingOn & AsyncCausalityTracer.Loggers.ETW) != (AsyncCausalityTracer.Loggers) 0)
         {
             TplEtwProvider.Log.TraceSynchronousWorkEnd(work);
         }
         if ((AsyncCausalityTracer.f_LoggingOn & AsyncCausalityTracer.Loggers.CausalityTracer) == (AsyncCausalityTracer.Loggers) 0)
         {
             return;
         }
         AsyncCausalityTracer.s_TracerFactory.TraceSynchronousWorkCompletion((Windows.Foundation.Diagnostics.CausalityTraceLevel)traceLevel, CausalitySource.Library, (Windows.Foundation.Diagnostics.CausalitySynchronousWork)work);
     }
     catch (Exception ex)
     {
         AsyncCausalityTracer.LogAndDisable(ex);
     }
 }
        internal static void TraceSynchronousWorkCompletion(CausalityTraceLevel traceLevel, CausalitySynchronousWork work)
        {
#if FEATURE_COMINTEROP
            try
            {
                if ((f_LoggingOn & Loggers.ETW) != 0)
                    TplEtwProvider.Log.TraceSynchronousWorkEnd(work);
                if ((f_LoggingOn & Loggers.CausalityTracer) != 0)
                    s_TracerFactory.TraceSynchronousWorkCompletion((WFD.CausalityTraceLevel)traceLevel, s_CausalitySource, (WFD.CausalitySynchronousWork)work);
            }
            catch(Exception ex)
            {
                //view function comment
                LogAndDisable(ex);
            }
#endif
        }
Пример #29
0
 public static void TraceSynchronousWorkCompletion(CausalityTraceLevel traceLevel, CausalitySynchronousWork work)
 {
 }