1 instantiation of TplEventSource
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TplEventSource.cs (1)
44public static readonly TplEventSource Log = new TplEventSource();
152 references to TplEventSource
System.Private.CoreLib (152)
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (16)
1937TplEventSource.Log.TraceOperationBegin(task.Id, "System.Runtime.CompilerServices.AsyncHelpers+RuntimeAsyncTask", 0); 1943TplEventSource.Log.TraceSynchronousWorkBegin(task.Id, CausalitySynchronousWork.Execution); 1949TplEventSource.Log.TraceSynchronousWorkEnd(CausalitySynchronousWork.Execution); 1954TplEventSource.Log.TraceSynchronousWorkEnd(CausalitySynchronousWork.Execution); 1962TplEventSource.Log.TraceOperationEnd(task.Id, AsyncCausalityStatus.Completed); 1963TplEventSource.Log.TraceSynchronousWorkEnd(CausalitySynchronousWork.Execution); 1972TplEventSource.Log.TraceOperationEnd(task.Id, ex is OperationCanceledException ? AsyncCausalityStatus.Canceled : AsyncCausalityStatus.Error); 1973TplEventSource.Log.TraceSynchronousWorkEnd(CausalitySynchronousWork.Execution); 2009TplEventSource log = TplEventSource.Log; 2010if (log.IsEnabled(EventLevel.Informational, TplEventSource.Keywords.TaskTransfer | TplEventSource.Keywords.Tasks)) 2016TplEventSource.TaskWaitBehavior.Asynchronous, 2040TplEventSource log = TplEventSource.Log; 2041if (log.IsEnabled(EventLevel.Verbose, TplEventSource.Keywords.Tasks))
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.RuntimeAsyncYielder.cs (1)
20if (TplEventSource.Log.IsEnabled())
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ActivityTracker.cs (6)
56if (useTplSource && TplEventSource.Log.IsEnabled(EventLevel.Informational, TplEventSource.Keywords.TasksFlowActivityIds)) 67TplEventSource? log = useTplSource ? TplEventSource.Log : null; 135TplEventSource? log = useTplSource ? TplEventSource.Log : null;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (2)
603TplEventSource.Log?.SetActivityId(activityId); 698TplEventSource.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)
108TplEventSource.Log.TraceOperationBegin(t.Id, "Async: " + stateMachineType.Name, 0);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncTaskMethodBuilderT.cs (3)
516TplEventSource.Log.TraceSynchronousWorkBegin(this.Id, CausalitySynchronousWork.Execution); 544TplEventSource.Log.TraceSynchronousWorkEnd(CausalitySynchronousWork.Execution); 674TplEventSource.Log.TraceOperationEnd(task.Id, AsyncCausalityStatus.Completed);
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\TaskAwaiter.cs (6)
253TplEventSource log = TplEventSource.Log; 265task.Id, TplEventSource.TaskWaitBehavior.Asynchronous, 281TplEventSource innerEtwLog = TplEventSource.Log; 297EventSource.SetCurrentThreadActivityId(TplEventSource.CreateGuidForTaskID(innerTask.Id), out prevActivityId);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\YieldAwaitable.cs (1)
77if (TplEventSource.Log.IsEnabled())
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (53)
1001if (TplEventSource.Log.IsEnabled()) 1005TplEventSource.Log.TaskScheduled(ts.Id, currentTask == null ? 0 : currentTask.Id, 1322if (TplEventSource.Log.IsEnabled()) 1323TplEventSource.Log.NewID(newId); 1832if (TplEventSource.Log.IsEnabled() && 1837TplEventSource.Log.TraceOperationBegin(this.Id, "Task: " + action.GetMethodName(), 0); 2211if (TplEventSource.Log.IsEnabled()) 2212TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Error); 2227if (TplEventSource.Log.IsEnabled()) 2228TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Canceled); 2236if (TplEventSource.Log.IsEnabled()) 2237TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed); 2461TplEventSource log = TplEventSource.Log; 2467EventSource.SetCurrentThreadActivityId(TplEventSource.CreateGuidForTaskID(this.Id), out savedActivityID); 3133TplEventSource log = TplEventSource.Log; 3140this.Id, TplEventSource.TaskWaitBehavior.Synchronous, 0); 3478if (TplEventSource.Log.IsEnabled()) 3479TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Canceled); 3624TplEventSource log = TplEventSource.Log; 3808if (TplEventSource.Log.IsEnabled()) 3809TplEventSource.Log.TraceSynchronousWorkEnd(CausalitySynchronousWork.CompletionNotification); 4699TplEventSource log = TplEventSource.Log; 5982if (TplEventSource.Log.IsEnabled()) 5983TplEventSource.Log.TraceOperationBegin(this.Id, "Task.Delay", 0); 6024if (TplEventSource.Log.IsEnabled()) 6025TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed); 6254if (TplEventSource.Log.IsEnabled()) 6256TplEventSource.Log.TraceOperationBegin(Id, "Task.WhenAll", 0); 6281if (TplEventSource.Log.IsEnabled()) 6283TplEventSource.Log.TraceOperationRelation(Id, CausalityRelation.Join); 6334if (TplEventSource.Log.IsEnabled()) 6336TplEventSource.Log.TraceOperationEnd(Id, AsyncCausalityStatus.Completed); 6597if (TplEventSource.Log.IsEnabled()) 6598TplEventSource.Log.TraceOperationBegin(this.Id, "Task.WhenAll", 0); 6612if (TplEventSource.Log.IsEnabled()) 6613TplEventSource.Log.TraceOperationRelation(this.Id, CausalityRelation.Join); 6667if (TplEventSource.Log.IsEnabled()) 6668TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed); 6821if (TplEventSource.Log.IsEnabled()) 6823TplEventSource.Log.TraceOperationBegin(this.Id, "Task.WhenAny", 0); 6856if (TplEventSource.Log.IsEnabled()) 6858TplEventSource.Log.TraceOperationRelation(this.Id, CausalityRelation.Choice); 6859TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed); 7594if (TplEventSource.Log.IsEnabled()) 7595TplEventSource.Log.TraceOperationBegin(this.Id, "Task.Unwrap", 0); 7704if (TplEventSource.Log.IsEnabled()) 7705TplEventSource.Log.TraceOperationRelation(this.Id, CausalityRelation.Join); 7730if (TplEventSource.Log.IsEnabled()) 7731TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskContinuation.cs (16)
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); 590TplEventSource log = TplEventSource.Log; 636TplEventSource log = TplEventSource.Log; 648Guid activityId = TplEventSource.CreateGuidForTaskID(m_continuationId); 835TplEventSource log = TplEventSource.Log;
src\runtime\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\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskScheduler.cs (2)
187if (TplEventSource.Log.IsEnabled()) 228if (TplEventSource.Log.IsEnabled())
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TplEventSource.cs (1)
44public static readonly TplEventSource Log = new TplEventSource();