Table of Contents

Class BOBPerformanceService

Namespace
BlazOrbit.Components
Assembly
BlazOrbit.Core.dll

Default in-memory IBOBPerformanceService implementation.

public sealed class BOBPerformanceService : IBOBPerformanceService
Inheritance
object
BOBPerformanceService
Implements

Constructors

BOBPerformanceService()

public BOBPerformanceService()

Methods

Get(string)

Returns the metrics for a specific component type, or null when none have been recorded.

public BOBComponentMetrics? Get(string componentType)

Parameters

componentType string

Returns

BOBComponentMetrics

GetAll()

Returns a snapshot of all collected metrics, ordered by total render-tree time.

public IReadOnlyCollection<BOBComponentMetrics> GetAll()

Returns

IReadOnlyCollection<BOBComponentMetrics>

RecordInit(string, double)

Records the OnInitialized sample for the given component type.

public void RecordInit(string componentType, double elapsedMs)

Parameters

componentType string
elapsedMs double

RecordParametersSet(string, double)

Records an OnParametersSet sample for the given component type.

public void RecordParametersSet(string componentType, double elapsedMs)

Parameters

componentType string
elapsedMs double

RecordRenderTreeBuild(string, double)

Records a BuildRenderTree sample for the given component type.

public void RecordRenderTreeBuild(string componentType, double elapsedMs)

Parameters

componentType string
elapsedMs double

Reset()

Clears all collected metrics.

public void Reset()

Events

MetricsUpdated

Raised after every recorded sample or Reset().

public event Action? MetricsUpdated

Event Type

Action