1 instantiation of TplEventSource
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TplEventSource.cs (1)
44
public static readonly TplEventSource Log = new
TplEventSource
();
144 references to TplEventSource
System.Private.CoreLib (144)
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (8)
1764
TplEventSource
.Log.TraceOperationBegin(task.Id, "System.Runtime.CompilerServices.AsyncHelpers+RuntimeAsyncTask", 0);
1769
TplEventSource
.Log.TraceSynchronousWorkBegin(task.Id, CausalitySynchronousWork.Execution);
1775
TplEventSource
.Log.TraceSynchronousWorkEnd(CausalitySynchronousWork.Execution);
1780
TplEventSource
.Log.TraceSynchronousWorkEnd(CausalitySynchronousWork.Execution);
1788
TplEventSource
.Log.TraceOperationEnd(task.Id, AsyncCausalityStatus.Completed);
1789
TplEventSource
.Log.TraceSynchronousWorkEnd(CausalitySynchronousWork.Execution);
1798
TplEventSource
.Log.TraceOperationEnd(task.Id, ex is OperationCanceledException ? AsyncCausalityStatus.Canceled : AsyncCausalityStatus.Error);
1799
TplEventSource
.Log.TraceSynchronousWorkEnd(CausalitySynchronousWork.Execution);
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.RuntimeAsyncYielder.cs (1)
20
if (
TplEventSource
.Log.IsEnabled())
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ActivityTracker.cs (6)
56
if (useTplSource &&
TplEventSource
.Log.IsEnabled(EventLevel.Informational,
TplEventSource
.Keywords.TasksFlowActivityIds))
67
TplEventSource
? log = useTplSource ?
TplEventSource
.Log : null;
135
TplEventSource
? log = useTplSource ?
TplEventSource
.Log : null;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (2)
603
TplEventSource
.Log?.SetActivityId(activityId);
698
TplEventSource
.Log?.SetActivityId(activityId);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncInstrumentation.cs (1)
151
_ =
TplEventSource
.Log; // Touch TplEventSource to trigger static constructor which will initialize TPL flags if EventSource is supported.
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncMethodBuilderCore.cs (1)
108
TplEventSource
.Log.TraceOperationBegin(t.Id, "Async: " + stateMachineType.Name, 0);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncTaskMethodBuilderT.cs (3)
511
TplEventSource
.Log.TraceSynchronousWorkBegin(this.Id, CausalitySynchronousWork.Execution);
539
TplEventSource
.Log.TraceSynchronousWorkEnd(CausalitySynchronousWork.Execution);
669
TplEventSource
.Log.TraceOperationEnd(task.Id, AsyncCausalityStatus.Completed);
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\TaskAwaiter.cs (6)
253
TplEventSource
log =
TplEventSource
.Log;
265
task.Id,
TplEventSource
.TaskWaitBehavior.Asynchronous,
281
TplEventSource
innerEtwLog =
TplEventSource
.Log;
297
EventSource.SetCurrentThreadActivityId(
TplEventSource
.CreateGuidForTaskID(innerTask.Id), out prevActivityId);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\YieldAwaitable.cs (1)
76
if (
TplEventSource
.Log.IsEnabled())
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (53)
1001
if (
TplEventSource
.Log.IsEnabled())
1005
TplEventSource
.Log.TaskScheduled(ts.Id, currentTask == null ? 0 : currentTask.Id,
1322
if (
TplEventSource
.Log.IsEnabled())
1323
TplEventSource
.Log.NewID(newId);
1832
if (
TplEventSource
.Log.IsEnabled() &&
1837
TplEventSource
.Log.TraceOperationBegin(this.Id, "Task: " + action.GetMethodName(), 0);
2211
if (
TplEventSource
.Log.IsEnabled())
2212
TplEventSource
.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Error);
2227
if (
TplEventSource
.Log.IsEnabled())
2228
TplEventSource
.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Canceled);
2236
if (
TplEventSource
.Log.IsEnabled())
2237
TplEventSource
.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed);
2461
TplEventSource
log =
TplEventSource
.Log;
2467
EventSource.SetCurrentThreadActivityId(
TplEventSource
.CreateGuidForTaskID(this.Id), out savedActivityID);
3133
TplEventSource
log =
TplEventSource
.Log;
3140
this.Id,
TplEventSource
.TaskWaitBehavior.Synchronous, 0);
3472
if (
TplEventSource
.Log.IsEnabled())
3473
TplEventSource
.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Canceled);
3618
TplEventSource
log =
TplEventSource
.Log;
3802
if (
TplEventSource
.Log.IsEnabled())
3803
TplEventSource
.Log.TraceSynchronousWorkEnd(CausalitySynchronousWork.CompletionNotification);
4693
TplEventSource
log =
TplEventSource
.Log;
5967
if (
TplEventSource
.Log.IsEnabled())
5968
TplEventSource
.Log.TraceOperationBegin(this.Id, "Task.Delay", 0);
6009
if (
TplEventSource
.Log.IsEnabled())
6010
TplEventSource
.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed);
6239
if (
TplEventSource
.Log.IsEnabled())
6241
TplEventSource
.Log.TraceOperationBegin(Id, "Task.WhenAll", 0);
6266
if (
TplEventSource
.Log.IsEnabled())
6268
TplEventSource
.Log.TraceOperationRelation(Id, CausalityRelation.Join);
6319
if (
TplEventSource
.Log.IsEnabled())
6321
TplEventSource
.Log.TraceOperationEnd(Id, AsyncCausalityStatus.Completed);
6582
if (
TplEventSource
.Log.IsEnabled())
6583
TplEventSource
.Log.TraceOperationBegin(this.Id, "Task.WhenAll", 0);
6597
if (
TplEventSource
.Log.IsEnabled())
6598
TplEventSource
.Log.TraceOperationRelation(this.Id, CausalityRelation.Join);
6652
if (
TplEventSource
.Log.IsEnabled())
6653
TplEventSource
.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed);
6806
if (
TplEventSource
.Log.IsEnabled())
6808
TplEventSource
.Log.TraceOperationBegin(this.Id, "Task.WhenAny", 0);
6841
if (
TplEventSource
.Log.IsEnabled())
6843
TplEventSource
.Log.TraceOperationRelation(this.Id, CausalityRelation.Choice);
6844
TplEventSource
.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed);
7579
if (
TplEventSource
.Log.IsEnabled())
7580
TplEventSource
.Log.TraceOperationBegin(this.Id, "Task.Unwrap", 0);
7689
if (
TplEventSource
.Log.IsEnabled())
7690
TplEventSource
.Log.TraceOperationRelation(this.Id, CausalityRelation.Join);
7715
if (
TplEventSource
.Log.IsEnabled())
7716
TplEventSource
.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskContinuation.cs (16)
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);
590
TplEventSource
log =
TplEventSource
.Log;
636
TplEventSource
log =
TplEventSource
.Log;
648
Guid activityId =
TplEventSource
.CreateGuidForTaskID(m_continuationId);
835
TplEventSource
log =
TplEventSource
.Log;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory_T.cs (22)
529
if (
TplEventSource
.Log.IsEnabled())
530
TplEventSource
.Log.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Completed);
651
if (
TplEventSource
.Log.IsEnabled())
652
TplEventSource
.Log.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync", 0);
667
if (
TplEventSource
.Log.IsEnabled())
668
TplEventSource
.Log.TraceOperationBegin(t.Id, "TaskFactory.FromAsync Callback", 0);
770
if (
TplEventSource
.Log.IsEnabled())
771
TplEventSource
.Log.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync: " + beginMethod.GetMethodName(), 0);
792
if (
TplEventSource
.Log.IsEnabled())
793
TplEventSource
.Log.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Error);
887
if (
TplEventSource
.Log.IsEnabled())
888
TplEventSource
.Log.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync: " + beginMethod.GetMethodName(), 0);
909
if (
TplEventSource
.Log.IsEnabled())
910
TplEventSource
.Log.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Error);
1012
if (
TplEventSource
.Log.IsEnabled())
1013
TplEventSource
.Log.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync: " + beginMethod.GetMethodName(), 0);
1034
if (
TplEventSource
.Log.IsEnabled())
1035
TplEventSource
.Log.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Error);
1145
if (
TplEventSource
.Log.IsEnabled())
1146
TplEventSource
.Log.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync: " + beginMethod.GetMethodName(), 0);
1167
if (
TplEventSource
.Log.IsEnabled())
1168
TplEventSource
.Log.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Error);
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskScheduler.cs (2)
187
if (
TplEventSource
.Log.IsEnabled())
228
if (
TplEventSource
.Log.IsEnabled())
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TplEventSource.cs (1)
44
public static readonly
TplEventSource
Log = new TplEventSource();