Table of Contents

Interface IBOBPerformanceService

Namespace
BlazOrbit.Components
Assembly
BlazOrbit.Core.dll

DEBUG-only diagnostic service collecting per-component render/init timing.

public interface IBOBPerformanceService

Methods

Get(string)

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

BOBComponentMetrics? Get(string componentType)

Parameters

componentType string

Returns

BOBComponentMetrics

GetAll()

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

IReadOnlyCollection<BOBComponentMetrics> GetAll()

Returns

IReadOnlyCollection<BOBComponentMetrics>

RecordInit(string, double)

Records the OnInitialized sample for the given component type.

void RecordInit(string componentType, double elapsedMs)

Parameters

componentType string
elapsedMs double

RecordParametersSet(string, double)

Records an OnParametersSet sample for the given component type.

void RecordParametersSet(string componentType, double elapsedMs)

Parameters

componentType string
elapsedMs double

RecordRenderTreeBuild(string, double)

Records a BuildRenderTree sample for the given component type.

void RecordRenderTreeBuild(string componentType, double elapsedMs)

Parameters

componentType string
elapsedMs double

Reset()

Clears all collected metrics.

void Reset()

Events

MetricsUpdated

Raised after every recorded sample or Reset().

event Action? MetricsUpdated

Event Type

Action