Implemented interface member:
property
TasksExecutionData
Microsoft.Build.Framework.IWorkerNodeTelemetryData.TasksExecutionData
1 write to TasksExecutionData
Microsoft.Build.Framework (1)
Telemetry\WorkerNodeTelemetryData.cs (1)
13TasksExecutionData = tasksExecutionData;
26 references to TasksExecutionData
Microsoft.Build (5)
TelemetryInfra\InternalTelemetryConsumingLogger.cs (5)
58Console.WriteLine($"Tasks: ({_workerNodeTelemetryData.TasksExecutionData.Count})"); 60foreach (var task in _workerNodeTelemetryData.TasksExecutionData.Where(t => t.Key.IsCustom)) 66foreach (var task in _workerNodeTelemetryData.TasksExecutionData.OrderByDescending(t => t.Value.CumulativeExecutionTime).Take(20)) 72foreach (var task in _workerNodeTelemetryData.TasksExecutionData.OrderByDescending(t => t.Value.TotalMemoryConsumption).Take(20)) 78foreach (var task in _workerNodeTelemetryData.TasksExecutionData.OrderByDescending(t => t.Value.ExecutionsCount))
Microsoft.Build.Engine.UnitTests (18)
TelemetryTests.cs (18)
79workerNodeTelemetryData.TasksExecutionData.Keys.Count.ShouldBeGreaterThan(2); 80((int)workerNodeTelemetryData.TasksExecutionData[(TaskOrTargetTelemetryKey)"Microsoft.Build.Tasks.Message"].ExecutionsCount).ShouldBe(2); 81workerNodeTelemetryData.TasksExecutionData[(TaskOrTargetTelemetryKey)"Microsoft.Build.Tasks.Message"].CumulativeExecutionTime.ShouldBeGreaterThan(TimeSpan.Zero); 82((int)workerNodeTelemetryData.TasksExecutionData[(TaskOrTargetTelemetryKey)"Microsoft.Build.Tasks.CreateItem"].ExecutionsCount).ShouldBe(1); 83workerNodeTelemetryData.TasksExecutionData[(TaskOrTargetTelemetryKey)"Microsoft.Build.Tasks.CreateItem"].CumulativeExecutionTime.ShouldBeGreaterThan(TimeSpan.Zero); 85workerNodeTelemetryData.TasksExecutionData.Keys.ShouldAllBe(k => !k.IsCustom && !k.IsFromNugetCache); 86workerNodeTelemetryData.TasksExecutionData.Values 154workerNodeTelemetryData.TasksExecutionData.Keys.Count.ShouldBeGreaterThan(2); 155((int)workerNodeTelemetryData.TasksExecutionData[(TaskOrTargetTelemetryKey)"Microsoft.Build.Tasks.Message"].ExecutionsCount).ShouldBe(3); 156workerNodeTelemetryData.TasksExecutionData[(TaskOrTargetTelemetryKey)"Microsoft.Build.Tasks.Message"].CumulativeExecutionTime.ShouldBeGreaterThan(TimeSpan.Zero); 157((int)workerNodeTelemetryData.TasksExecutionData[(TaskOrTargetTelemetryKey)"Microsoft.Build.Tasks.CreateItem"].ExecutionsCount).ShouldBe(1); 158workerNodeTelemetryData.TasksExecutionData[(TaskOrTargetTelemetryKey)"Microsoft.Build.Tasks.CreateItem"].CumulativeExecutionTime.ShouldBeGreaterThan(TimeSpan.Zero); 160((int)workerNodeTelemetryData.TasksExecutionData[new TaskOrTargetTelemetryKey("Task01", true, false)].ExecutionsCount).ShouldBe(2); 161workerNodeTelemetryData.TasksExecutionData[new TaskOrTargetTelemetryKey("Task01", true, false)].CumulativeExecutionTime.ShouldBeGreaterThan(TimeSpan.Zero); 163((int)workerNodeTelemetryData.TasksExecutionData[new TaskOrTargetTelemetryKey("Task02", true, false)].ExecutionsCount).ShouldBe(0); 164workerNodeTelemetryData.TasksExecutionData[new TaskOrTargetTelemetryKey("Task02", true, false)].CumulativeExecutionTime.ShouldBe(TimeSpan.Zero); 166workerNodeTelemetryData.TasksExecutionData.Values 169workerNodeTelemetryData.TasksExecutionData.Keys.ShouldAllBe(k => !k.IsFromNugetCache);
Microsoft.Build.Framework (2)
Telemetry\WorkerNodeTelemetryData.cs (2)
33if (!TasksExecutionData.TryGetValue(task, out taskExecutionStats)) 36TasksExecutionData[task] = taskExecutionStats;
Microsoft.Build.Framework.UnitTests (1)
WorkerNodeTelemetryEventArgs_Tests.cs (1)
42argDeserialized.WorkerNodeTelemetryData.TasksExecutionData.ShouldBeEquivalentTo(td.TasksExecutionData);