Skip to main content

Class FrameDiagnosticsCollector

Namespace: VelloSharp.ChartDiagnostics
Assembly: VelloSharp.ChartDiagnostics.dll

Aggregates frame statistics and exposes them through .NET diagnostics primitives.

public sealed class FrameDiagnosticsCollector : IDisposable

Inheritance

objectFrameDiagnosticsCollector

Implements

IDisposable

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

FrameDiagnosticsCollector(IChartTelemetrySink?)

public FrameDiagnosticsCollector(IChartTelemetrySink? telemetrySink = null)

Parameters

telemetrySink IChartTelemetrySink?

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Record(FrameStats)

public void Record(FrameStats stats)

Parameters

stats FrameStats

RecordMetric(ChartMetric)

public void RecordMetric(ChartMetric metric)

Parameters

metric ChartMetric

SetTelemetrySink(IChartTelemetrySink?)

public void SetTelemetrySink(IChartTelemetrySink? telemetrySink)

Parameters

telemetrySink IChartTelemetrySink?

TryGetRecent(out FrameStats)

public bool TryGetRecent(out FrameStats stats)

Parameters

stats FrameStats

Returns

bool