Table of Contents

Class ProfilerStats

Namespace
AiDotNet.Diagnostics
Assembly
AiDotNet.dll

Statistics for a profiled operation.

public class ProfilerStats
Inheritance
ProfilerStats
Inherited Members

Properties

AllocationCount

Number of allocation events.

public int AllocationCount { get; init; }

Property Value

int

Count

Number of times the operation was called.

public int Count { get; init; }

Property Value

int

MaxMs

Maximum time in milliseconds.

public double MaxMs { get; init; }

Property Value

double

MeanMs

Mean time in milliseconds.

public double MeanMs { get; init; }

Property Value

double

MinMs

Minimum time in milliseconds.

public double MinMs { get; init; }

Property Value

double

Name

Operation name.

public required string Name { get; init; }

Property Value

string

OpsPerSecond

Gets the operations per second based on count and total time.

public double OpsPerSecond { get; }

Property Value

double

P50Ms

50th percentile (median) in milliseconds.

public double P50Ms { get; init; }

Property Value

double

P95Ms

95th percentile in milliseconds.

public double P95Ms { get; init; }

Property Value

double

P99Ms

99th percentile in milliseconds.

public double P99Ms { get; init; }

Property Value

double

Parents

Parent operations (for hierarchy tracking).

public IReadOnlyList<string> Parents { get; init; }

Property Value

IReadOnlyList<string>

StdDevMs

Standard deviation in milliseconds.

public double StdDevMs { get; init; }

Property Value

double

TotalAllocations

Total bytes allocated.

public long TotalAllocations { get; init; }

Property Value

long

TotalMs

Total time in milliseconds.

public double TotalMs { get; init; }

Property Value

double

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.