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); } }
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 } }
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); } }
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); }
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); } } }
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); } }
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); } }
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 }
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 }
public abstract void TraceSynchronousWorkStart(CausalityTraceLevel traceLevel, CausalitySource source, Guid platformId, ulong operationId, CausalitySynchronousWork work);
public abstract void TraceSynchronousWorkCompletion(CausalityTraceLevel traceLevel, CausalitySource source, CausalitySynchronousWork work);
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 }
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 }
public static void TraceSynchronousWorkStart(Task task, CausalitySynchronousWork work) { }
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); } } }
public static void TraceSynchronousWorkStart(CausalityTraceLevel traceLevel, Task task, CausalitySynchronousWork work) { }
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 }
public static void TraceSynchronousWorkCompletion(CausalityTraceLevel traceLevel, CausalitySynchronousWork work) { }