1 instantiation of TplEventSource
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TplEventSource.cs (1)
42public static readonly TplEventSource Log = new TplEventSource();
157 references to TplEventSource
System.Private.CoreLib (157)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ActivityTracker.cs (6)
55if (useTplSource && TplEventSource.Log.IsEnabled(EventLevel.Informational, TplEventSource.Keywords.TasksFlowActivityIds)) 66TplEventSource? log = useTplSource ? TplEventSource.Log : null; 134TplEventSource? log = useTplSource ? TplEventSource.Log : null;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (2)
602TplEventSource.Log?.SetActivityId(activityId); 697TplEventSource.Log?.SetActivityId(activityId);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncMethodBuilderCore.cs (3)
80get => TplEventSource.Log.IsEnabled(EventLevel.Warning, TplEventSource.Keywords.AsyncMethod); 108TplEventSource.Log.TraceOperationBegin(t.Id, "Async: " + stateMachineType.Name, 0);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncTaskMethodBuilderT.cs (7)
231if (TplEventSource.Log.IsEnabled()) 270TplEventSource.Log.IncompleteAsyncMethod(this); 356bool loggingOn = TplEventSource.Log.IsEnabled(); 359TplEventSource.Log.TraceSynchronousWorkBegin(this.Id, CausalitySynchronousWork.Execution); 387TplEventSource.Log.TraceSynchronousWorkEnd(CausalitySynchronousWork.Execution); 489if (TplEventSource.Log.IsEnabled()) 491TplEventSource.Log.TraceOperationEnd(task.Id, AsyncCausalityStatus.Completed);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncVoidMethodBuilder.cs (4)
78if (TplEventSource.Log.IsEnabled()) 80TplEventSource.Log.TraceOperationEnd(this.Task.Id, AsyncCausalityStatus.Completed); 118if (TplEventSource.Log.IsEnabled()) 120TplEventSource.Log.TraceOperationEnd(this.Task.Id, AsyncCausalityStatus.Error);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\TaskAwaiter.cs (8)
180if (TplEventSource.Log.IsEnabled() || Task.s_asyncDebuggingEnabled) 199if (TplEventSource.Log.IsEnabled() || Task.s_asyncDebuggingEnabled) 225TplEventSource log = TplEventSource.Log; 237task.Id, TplEventSource.TaskWaitBehavior.Asynchronous, 253TplEventSource innerEtwLog = TplEventSource.Log; 269EventSource.SetCurrentThreadActivityId(TplEventSource.CreateGuidForTaskID(innerTask.Id), out prevActivityId);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\YieldAwaitable.cs (6)
76if (TplEventSource.Log.IsEnabled()) 120if (TplEventSource.Log.IsEnabled()) 157TplEventSource.Log.AwaitTaskContinuationScheduled(TaskScheduler.Current.Id, (currentTask != null) ? currentTask.Id : 0, continuationId); 161TplEventSource log = TplEventSource.Log; 168EventSource.SetCurrentThreadActivityId(TplEventSource.CreateGuidForTaskID(((Task<int>)continuationIdTask).Result), out prevActivityId);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (53)
930if (TplEventSource.Log.IsEnabled()) 934TplEventSource.Log.TaskScheduled(ts.Id, currentTask == null ? 0 : currentTask.Id, 1251if (TplEventSource.Log.IsEnabled()) 1252TplEventSource.Log.NewID(newId); 1757if (TplEventSource.Log.IsEnabled() && 1762TplEventSource.Log.TraceOperationBegin(this.Id, "Task: " + action.GetMethodName(), 0); 2136if (TplEventSource.Log.IsEnabled()) 2137TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Error); 2152if (TplEventSource.Log.IsEnabled()) 2153TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Canceled); 2161if (TplEventSource.Log.IsEnabled()) 2162TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed); 2385TplEventSource log = TplEventSource.Log; 2391EventSource.SetCurrentThreadActivityId(TplEventSource.CreateGuidForTaskID(this.Id), out savedActivityID); 3057TplEventSource log = TplEventSource.Log; 3064this.Id, TplEventSource.TaskWaitBehavior.Synchronous, 0); 3396if (TplEventSource.Log.IsEnabled()) 3397TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Canceled); 3542TplEventSource log = TplEventSource.Log; 3702if (TplEventSource.Log.IsEnabled()) 3703TplEventSource.Log.TraceSynchronousWorkEnd(CausalitySynchronousWork.CompletionNotification); 4593TplEventSource log = TplEventSource.Log; 5866if (TplEventSource.Log.IsEnabled()) 5867TplEventSource.Log.TraceOperationBegin(this.Id, "Task.Delay", 0); 5908if (TplEventSource.Log.IsEnabled()) 5909TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed); 6138if (TplEventSource.Log.IsEnabled()) 6140TplEventSource.Log.TraceOperationBegin(Id, "Task.WhenAll", 0); 6165if (TplEventSource.Log.IsEnabled()) 6167TplEventSource.Log.TraceOperationRelation(Id, CausalityRelation.Join); 6218if (TplEventSource.Log.IsEnabled()) 6220TplEventSource.Log.TraceOperationEnd(Id, AsyncCausalityStatus.Completed); 6481if (TplEventSource.Log.IsEnabled()) 6482TplEventSource.Log.TraceOperationBegin(this.Id, "Task.WhenAll", 0); 6496if (TplEventSource.Log.IsEnabled()) 6497TplEventSource.Log.TraceOperationRelation(this.Id, CausalityRelation.Join); 6551if (TplEventSource.Log.IsEnabled()) 6552TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed); 6705if (TplEventSource.Log.IsEnabled()) 6707TplEventSource.Log.TraceOperationBegin(this.Id, "Task.WhenAny", 0); 6740if (TplEventSource.Log.IsEnabled()) 6742TplEventSource.Log.TraceOperationRelation(this.Id, CausalityRelation.Choice); 6743TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed); 7476if (TplEventSource.Log.IsEnabled()) 7477TplEventSource.Log.TraceOperationBegin(this.Id, "Task.Unwrap", 0); 7586if (TplEventSource.Log.IsEnabled()) 7587TplEventSource.Log.TraceOperationRelation(this.Id, CausalityRelation.Join); 7612if (TplEventSource.Log.IsEnabled()) 7613TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskContinuation.cs (17)
279if (TplEventSource.Log.IsEnabled()) 280TplEventSource.Log.TraceOperationBegin(m_task.Id, "Task.ContinueWith: " + task.m_action!.GetMethodName(), 0); 314if (TplEventSource.Log.IsEnabled() && !continuationTask.IsCanceled) 317TplEventSource.Log.TraceOperationRelation(continuationTask.Id, CausalityRelation.AssignDelegate); 403TplEventSource log = TplEventSource.Log; 421TplEventSource log = TplEventSource.Log; 436Guid activityId = TplEventSource.CreateGuidForTaskID(continuationId); 576TplEventSource log = TplEventSource.Log; 622TplEventSource log = TplEventSource.Log; 634Guid activityId = TplEventSource.CreateGuidForTaskID(m_continuationId); 780if (TplEventSource.Log.IsEnabled()) 814TplEventSource log = TplEventSource.Log;
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory.cs (17)
1558if (TplEventSource.Log.IsEnabled()) 1559TplEventSource.Log.TraceOperationBegin(this.Id, "TaskFactory.ContinueWhenAll", 0); 1567if (TplEventSource.Log.IsEnabled()) 1568TplEventSource.Log.TraceOperationRelation(this.Id, CausalityRelation.Join); 1573if (TplEventSource.Log.IsEnabled()) 1574TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed); 1628if (TplEventSource.Log.IsEnabled()) 1629TplEventSource.Log.TraceOperationBegin(this.Id, "TaskFactory.ContinueWhenAll<>", 0); 1637if (TplEventSource.Log.IsEnabled()) 1638TplEventSource.Log.TraceOperationRelation(this.Id, CausalityRelation.Join); 1643if (TplEventSource.Log.IsEnabled()) 1644TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed); 2283if (TplEventSource.Log.IsEnabled()) 2284TplEventSource.Log.TraceOperationBegin(this.Id, "TaskFactory.ContinueWhenAny", 0); 2299if (TplEventSource.Log.IsEnabled()) 2301TplEventSource.Log.TraceOperationRelation(this.Id, CausalityRelation.Choice); 2302TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory_T.cs (22)
529if (TplEventSource.Log.IsEnabled()) 530TplEventSource.Log.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Completed); 651if (TplEventSource.Log.IsEnabled()) 652TplEventSource.Log.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync", 0); 667if (TplEventSource.Log.IsEnabled()) 668TplEventSource.Log.TraceOperationBegin(t.Id, "TaskFactory.FromAsync Callback", 0); 770if (TplEventSource.Log.IsEnabled()) 771TplEventSource.Log.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync: " + beginMethod.GetMethodName(), 0); 792if (TplEventSource.Log.IsEnabled()) 793TplEventSource.Log.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Error); 887if (TplEventSource.Log.IsEnabled()) 888TplEventSource.Log.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync: " + beginMethod.GetMethodName(), 0); 909if (TplEventSource.Log.IsEnabled()) 910TplEventSource.Log.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Error); 1012if (TplEventSource.Log.IsEnabled()) 1013TplEventSource.Log.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync: " + beginMethod.GetMethodName(), 0); 1034if (TplEventSource.Log.IsEnabled()) 1035TplEventSource.Log.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Error); 1145if (TplEventSource.Log.IsEnabled()) 1146TplEventSource.Log.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync: " + beginMethod.GetMethodName(), 0); 1167if (TplEventSource.Log.IsEnabled()) 1168TplEventSource.Log.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Error);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskScheduler.cs (2)
187if (TplEventSource.Log.IsEnabled()) 228if (TplEventSource.Log.IsEnabled())
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TplEventSource.cs (1)
42public static readonly TplEventSource Log = new TplEventSource();
src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (9)
491bool isTplEnabled = TplEventSource.Log.IsEnabled(); 495TplEventSource.Log.TraceSynchronousWorkBegin(this.Id, CausalitySynchronousWork.Execution); 556TplEventSource.Log.TraceOperationEnd(this.Id, ex is OperationCanceledException ? AsyncCausalityStatus.Canceled : AsyncCausalityStatus.Error); 581TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed); 611TplEventSource.Log.TraceSynchronousWorkEnd(CausalitySynchronousWork.Execution); 728if (TplEventSource.Log.IsEnabled()) 730TplEventSource.Log.TraceOperationBegin(result.Id, "System.Runtime.CompilerServices.AsyncHelpers+RuntimeAsyncTask", 0); 744if (TplEventSource.Log.IsEnabled()) 746TplEventSource.Log.TraceOperationBegin(result.Id, "System.Runtime.CompilerServices.AsyncHelpers+RuntimeAsyncTask", 0);