Table of Contents

Class ProfilerSessionEntry

Namespace
AiDotNet.Diagnostics
Assembly
AiDotNet.dll

A single profiler entry tracking an operation's performance using streaming algorithms.

public class ProfilerSessionEntry : IProfilerEntry
Inheritance
ProfilerSessionEntry
Implements
Inherited Members

Remarks

Production-Ready Features:

  • Welford's algorithm for O(1) mean/variance computation
  • Reservoir sampling for accurate percentile estimation
  • Bounded memory usage with configurable sample limits
  • Lock-free statistics for min/max/count

Properties

Name

public string Name { get; }

Property Value

string

SampleCount

public int SampleCount { get; }

Property Value

int

Methods

GetStats()

public ProfilerStats GetStats()

Returns

ProfilerStats