Class AggregatedMetrics
Represents aggregated metrics over a period of mutation executions.
Inherited Members
Namespace: ModularityKit.Mutator.Abstractions.Metrics
Assembly: ModularityKit.Mutator.dll
Syntax
public sealed class AggregatedMetrics
Remarks
AggregatedMetrics provides statistical insights on mutation performance, including execution time percentiles, throughput, and total mutation count. It is typically obtained via GetAggregatedAsync(DateTimeOffset, DateTimeOffset, CancellationToken).
Key metrics include:
- TotalMutations - total number of mutations executed in the period.
- AverageExecutionTime - mean duration of mutations.
- MinExecutionTime / MaxExecutionTime - minimum and maximum execution times.
- P50 / P95 / P99 percentiles - statistical distribution of execution durations.
- ThroughputPerSecond - average number of mutations per second.
Properties
| Edit this page View SourceAverageExecutionTime
Average execution time of mutations.
Declaration
public TimeSpan AverageExecutionTime { get; init; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
From
Start of the aggregation period.
Declaration
public DateTimeOffset From { get; init; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset |
MaxExecutionTime
Maximum execution time recorded.
Declaration
public TimeSpan MaxExecutionTime { get; init; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
MinExecutionTime
Minimum execution time recorded.
Declaration
public TimeSpan MinExecutionTime { get; init; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
P50ExecutionTime
50th percentile execution time (median).
Declaration
public TimeSpan P50ExecutionTime { get; init; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
P95ExecutionTime
95th percentile execution time.
Declaration
public TimeSpan P95ExecutionTime { get; init; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
P99ExecutionTime
99th percentile execution time.
Declaration
public TimeSpan P99ExecutionTime { get; init; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
ThroughputPerSecond
Average throughput of mutations per second.
Declaration
public double ThroughputPerSecond { get; init; }
Property Value
| Type | Description |
|---|---|
| double |
To
End of the aggregation period.
Declaration
public DateTimeOffset To { get; init; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset |
TotalMutations
Total number of mutations executed in the period.
Declaration
public int TotalMutations { get; init; }
Property Value
| Type | Description |
|---|---|
| int |