1 instantiation of TplEventSource
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TplEventSource.cs (1)
43
public static readonly TplEventSource Log = new
TplEventSource
();
148 references to TplEventSource
System.Private.CoreLib (148)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ActivityTracker.cs (6)
55
if (useTplSource &&
TplEventSource
.Log.IsEnabled(EventLevel.Informational,
TplEventSource
.Keywords.TasksFlowActivityIds))
66
TplEventSource
? log = useTplSource ?
TplEventSource
.Log : null;
134
TplEventSource
? log = useTplSource ?
TplEventSource
.Log : null;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (2)
614
TplEventSource
.Log?.SetActivityId(activityId);
709
TplEventSource
.Log?.SetActivityId(activityId);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncMethodBuilderCore.cs (3)
80
get =>
TplEventSource
.Log.IsEnabled(EventLevel.Warning,
TplEventSource
.Keywords.AsyncMethod);
108
TplEventSource
.Log.TraceOperationBegin(t.Id, "Async: " + stateMachineType.Name, 0);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncTaskMethodBuilderT.cs (7)
231
if (
TplEventSource
.Log.IsEnabled())
270
TplEventSource
.Log.IncompleteAsyncMethod(this);
356
bool loggingOn =
TplEventSource
.Log.IsEnabled();
359
TplEventSource
.Log.TraceSynchronousWorkBegin(this.Id, CausalitySynchronousWork.Execution);
387
TplEventSource
.Log.TraceSynchronousWorkEnd(CausalitySynchronousWork.Execution);
489
if (
TplEventSource
.Log.IsEnabled())
491
TplEventSource
.Log.TraceOperationEnd(task.Id, AsyncCausalityStatus.Completed);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncVoidMethodBuilder.cs (4)
78
if (
TplEventSource
.Log.IsEnabled())
80
TplEventSource
.Log.TraceOperationEnd(this.Task.Id, AsyncCausalityStatus.Completed);
118
if (
TplEventSource
.Log.IsEnabled())
120
TplEventSource
.Log.TraceOperationEnd(this.Task.Id, AsyncCausalityStatus.Error);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\TaskAwaiter.cs (8)
180
if (
TplEventSource
.Log.IsEnabled() || Task.s_asyncDebuggingEnabled)
199
if (
TplEventSource
.Log.IsEnabled() || Task.s_asyncDebuggingEnabled)
225
TplEventSource
log =
TplEventSource
.Log;
237
task.Id,
TplEventSource
.TaskWaitBehavior.Asynchronous,
253
TplEventSource
innerEtwLog =
TplEventSource
.Log;
269
EventSource.SetCurrentThreadActivityId(
TplEventSource
.CreateGuidForTaskID(innerTask.Id), out prevActivityId);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\YieldAwaitable.cs (6)
76
if (
TplEventSource
.Log.IsEnabled())
120
if (
TplEventSource
.Log.IsEnabled())
157
TplEventSource
.Log.AwaitTaskContinuationScheduled(TaskScheduler.Current.Id, (currentTask != null) ? currentTask.Id : 0, continuationId);
161
TplEventSource
log =
TplEventSource
.Log;
168
EventSource.SetCurrentThreadActivityId(
TplEventSource
.CreateGuidForTaskID(((Task<int>)continuationIdTask).Result), out prevActivityId);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\FutureFactory.cs (22)
528
if (
TplEventSource
.Log.IsEnabled())
529
TplEventSource
.Log.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Completed);
650
if (
TplEventSource
.Log.IsEnabled())
651
TplEventSource
.Log.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync", 0);
666
if (
TplEventSource
.Log.IsEnabled())
667
TplEventSource
.Log.TraceOperationBegin(t.Id, "TaskFactory.FromAsync Callback", 0);
767
if (
TplEventSource
.Log.IsEnabled())
768
TplEventSource
.Log.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync: " + beginMethod.GetMethodName(), 0);
789
if (
TplEventSource
.Log.IsEnabled())
790
TplEventSource
.Log.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Error);
884
if (
TplEventSource
.Log.IsEnabled())
885
TplEventSource
.Log.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync: " + beginMethod.GetMethodName(), 0);
906
if (
TplEventSource
.Log.IsEnabled())
907
TplEventSource
.Log.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Error);
1009
if (
TplEventSource
.Log.IsEnabled())
1010
TplEventSource
.Log.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync: " + beginMethod.GetMethodName(), 0);
1031
if (
TplEventSource
.Log.IsEnabled())
1032
TplEventSource
.Log.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Error);
1142
if (
TplEventSource
.Log.IsEnabled())
1143
TplEventSource
.Log.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync: " + beginMethod.GetMethodName(), 0);
1164
if (
TplEventSource
.Log.IsEnabled())
1165
TplEventSource
.Log.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Error);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (53)
853
if (
TplEventSource
.Log.IsEnabled())
857
TplEventSource
.Log.TaskScheduled(ts.Id, currentTask == null ? 0 : currentTask.Id,
1174
if (
TplEventSource
.Log.IsEnabled())
1175
TplEventSource
.Log.NewID(newId);
1680
if (
TplEventSource
.Log.IsEnabled() &&
1685
TplEventSource
.Log.TraceOperationBegin(this.Id, "Task: " + action.GetMethodName(), 0);
2059
if (
TplEventSource
.Log.IsEnabled())
2060
TplEventSource
.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Error);
2075
if (
TplEventSource
.Log.IsEnabled())
2076
TplEventSource
.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Canceled);
2084
if (
TplEventSource
.Log.IsEnabled())
2085
TplEventSource
.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed);
2308
TplEventSource
log =
TplEventSource
.Log;
2314
EventSource.SetCurrentThreadActivityId(
TplEventSource
.CreateGuidForTaskID(this.Id), out savedActivityID);
2983
TplEventSource
log =
TplEventSource
.Log;
2990
this.Id,
TplEventSource
.TaskWaitBehavior.Synchronous, 0);
3313
if (
TplEventSource
.Log.IsEnabled())
3314
TplEventSource
.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Canceled);
3459
TplEventSource
log =
TplEventSource
.Log;
3619
if (
TplEventSource
.Log.IsEnabled())
3620
TplEventSource
.Log.TraceSynchronousWorkEnd(CausalitySynchronousWork.CompletionNotification);
4510
TplEventSource
log =
TplEventSource
.Log;
5801
if (
TplEventSource
.Log.IsEnabled())
5802
TplEventSource
.Log.TraceOperationBegin(this.Id, "Task.Delay", 0);
5843
if (
TplEventSource
.Log.IsEnabled())
5844
TplEventSource
.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed);
6073
if (
TplEventSource
.Log.IsEnabled())
6075
TplEventSource
.Log.TraceOperationBegin(Id, "Task.WhenAll", 0);
6100
if (
TplEventSource
.Log.IsEnabled())
6102
TplEventSource
.Log.TraceOperationRelation(Id, CausalityRelation.Join);
6153
if (
TplEventSource
.Log.IsEnabled())
6155
TplEventSource
.Log.TraceOperationEnd(Id, AsyncCausalityStatus.Completed);
6416
if (
TplEventSource
.Log.IsEnabled())
6417
TplEventSource
.Log.TraceOperationBegin(this.Id, "Task.WhenAll", 0);
6431
if (
TplEventSource
.Log.IsEnabled())
6432
TplEventSource
.Log.TraceOperationRelation(this.Id, CausalityRelation.Join);
6486
if (
TplEventSource
.Log.IsEnabled())
6487
TplEventSource
.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed);
6640
if (
TplEventSource
.Log.IsEnabled())
6642
TplEventSource
.Log.TraceOperationBegin(this.Id, "Task.WhenAny", 0);
6675
if (
TplEventSource
.Log.IsEnabled())
6677
TplEventSource
.Log.TraceOperationRelation(this.Id, CausalityRelation.Choice);
6678
TplEventSource
.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed);
7411
if (
TplEventSource
.Log.IsEnabled())
7412
TplEventSource
.Log.TraceOperationBegin(this.Id, "Task.Unwrap", 0);
7521
if (
TplEventSource
.Log.IsEnabled())
7522
TplEventSource
.Log.TraceOperationRelation(this.Id, CausalityRelation.Join);
7547
if (
TplEventSource
.Log.IsEnabled())
7548
TplEventSource
.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskContinuation.cs (17)
279
if (
TplEventSource
.Log.IsEnabled())
280
TplEventSource
.Log.TraceOperationBegin(m_task.Id, "Task.ContinueWith: " + task.m_action!.GetMethodName(), 0);
314
if (
TplEventSource
.Log.IsEnabled() && !continuationTask.IsCanceled)
317
TplEventSource
.Log.TraceOperationRelation(continuationTask.Id, CausalityRelation.AssignDelegate);
403
TplEventSource
log =
TplEventSource
.Log;
421
TplEventSource
log =
TplEventSource
.Log;
436
Guid activityId =
TplEventSource
.CreateGuidForTaskID(continuationId);
576
TplEventSource
log =
TplEventSource
.Log;
622
TplEventSource
log =
TplEventSource
.Log;
634
Guid activityId =
TplEventSource
.CreateGuidForTaskID(m_continuationId);
780
if (
TplEventSource
.Log.IsEnabled())
814
TplEventSource
log =
TplEventSource
.Log;
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory.cs (17)
1558
if (
TplEventSource
.Log.IsEnabled())
1559
TplEventSource
.Log.TraceOperationBegin(this.Id, "TaskFactory.ContinueWhenAll", 0);
1567
if (
TplEventSource
.Log.IsEnabled())
1568
TplEventSource
.Log.TraceOperationRelation(this.Id, CausalityRelation.Join);
1573
if (
TplEventSource
.Log.IsEnabled())
1574
TplEventSource
.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed);
1628
if (
TplEventSource
.Log.IsEnabled())
1629
TplEventSource
.Log.TraceOperationBegin(this.Id, "TaskFactory.ContinueWhenAll<>", 0);
1637
if (
TplEventSource
.Log.IsEnabled())
1638
TplEventSource
.Log.TraceOperationRelation(this.Id, CausalityRelation.Join);
1643
if (
TplEventSource
.Log.IsEnabled())
1644
TplEventSource
.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed);
2283
if (
TplEventSource
.Log.IsEnabled())
2284
TplEventSource
.Log.TraceOperationBegin(this.Id, "TaskFactory.ContinueWhenAny", 0);
2299
if (
TplEventSource
.Log.IsEnabled())
2301
TplEventSource
.Log.TraceOperationRelation(this.Id, CausalityRelation.Choice);
2302
TplEventSource
.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskScheduler.cs (2)
187
if (
TplEventSource
.Log.IsEnabled())
228
if (
TplEventSource
.Log.IsEnabled())
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TplEventSource.cs (1)
43
public static readonly
TplEventSource
Log = new TplEventSource();