3 instantiations of TaskExecutionStats
Microsoft.Build.Framework (3)
Telemetry\TaskExecutionStats.cs (1)
27
=>
new
();
Telemetry\WorkerNodeTelemetryData.cs (1)
64
taskExecutionStats =
new
(cumulativeExecutionTime, executionsCount, totalMemoryConsumption, factoryName, taskHostRuntime);
Telemetry\WorkerNodeTelemetryEventArgs.cs (1)
85
new
TaskExecutionStats
(
22 references to TaskExecutionStats
Microsoft.Build.Framework (22)
Telemetry\IWorkerNodeTelemetryData.cs (1)
13
Dictionary<TaskOrTargetTelemetryKey,
TaskExecutionStats
> TasksExecutionData { get; }
Telemetry\TaskExecutionStats.cs (5)
23
/// Creates an instance of <see cref="
TaskExecutionStats
"/> initialized to zero values.
26
internal static
TaskExecutionStats
CreateEmpty()
61
internal void Accumulate(
TaskExecutionStats
other)
77
if (obj is
TaskExecutionStats
other)
84
protected bool Equals(
TaskExecutionStats
other)
Telemetry\TelemetryDataUtils.cs (11)
98
Dictionary<TaskOrTargetTelemetryKey,
TaskExecutionStats
> tasksDetails)
102
foreach (KeyValuePair<TaskOrTargetTelemetryKey,
TaskExecutionStats
> valuePair in tasksDetails)
126
private static long? GetMemoryBytes(
TaskExecutionStats
stats) =>
252
static TaskCategoryStats? CreateTaskStats(
TaskExecutionStats
total,
TaskExecutionStats
fromNuget)
343
public void Process(Dictionary<TaskOrTargetTelemetryKey,
TaskExecutionStats
> tasksExecutionData)
345
foreach (KeyValuePair<TaskOrTargetTelemetryKey,
TaskExecutionStats
> kv in tasksExecutionData)
359
public
TaskExecutionStats
Total { get; } =
TaskExecutionStats
.CreateEmpty();
361
public
TaskExecutionStats
FromNuget { get; } =
TaskExecutionStats
.CreateEmpty();
Telemetry\WorkerNodeTelemetryData.cs (3)
12
Dictionary<TaskOrTargetTelemetryKey,
TaskExecutionStats
> tasksExecutionData,
62
if (!TasksExecutionData.TryGetValue(task, out
TaskExecutionStats
? taskExecutionStats))
163
public Dictionary<TaskOrTargetTelemetryKey,
TaskExecutionStats
> TasksExecutionData { get; }
Telemetry\WorkerNodeTelemetryEventArgs.cs (2)
26
foreach (KeyValuePair<TaskOrTargetTelemetryKey,
TaskExecutionStats
> entry in WorkerNodeTelemetryData.TasksExecutionData)
72
Dictionary<TaskOrTargetTelemetryKey,
TaskExecutionStats
> tasksExecutionData = new();