Class BOBPerformanceService
- Namespace
- BlazOrbit.Components
- Assembly
- BlazOrbit.Core.dll
Default in-memory IBOBPerformanceService implementation.
public sealed class BOBPerformanceService : IBOBPerformanceService
- Inheritance
-
objectBOBPerformanceService
- 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
componentTypestring
Returns
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
componentTypestringelapsedMsdouble
RecordParametersSet(string, double)
Records an OnParametersSet sample for the given component type.
public void RecordParametersSet(string componentType, double elapsedMs)
Parameters
componentTypestringelapsedMsdouble
RecordRenderTreeBuild(string, double)
Records a BuildRenderTree sample for the given component type.
public void RecordRenderTreeBuild(string componentType, double elapsedMs)
Parameters
componentTypestringelapsedMsdouble
Reset()
Clears all collected metrics.
public void Reset()
Events
MetricsUpdated
Raised after every recorded sample or Reset().
public event Action? MetricsUpdated
Event Type
- Action