SystemPerf.md

June 4, 2024 ยท View on GitHub

Friflo.Engine.ECS

Friflo.Engine.ECS.Systems

SystemPerf Struct

Provide performance statistics of system execution via the system property Perf.

public struct SystemPerf
Properties
LastMemoryReturn the memory allocations of the last execution in bytes.
LastMsReturn the duration of the last execution in milliseconds.
Can be 0 in case execution time was below System.Diagnostics.Stopwatch.Frequency precision.
LastTicksReturn the duration of the last execution in timer ticks.
Can be 0 in case execution time was below System.Diagnostics.Stopwatch.Frequency precision.
SumMemoryReturn the sum of memory allocations of all executions in bytes.
SumMsReturn the sum of all execution times in milliseconds.
SumTicksReturn the sum of all execution times in timer ticks.
UpdateCountReturn the number of system executions.
Methods
LastAvgMs(int)Return the average duration of the last count executions in milliseconds.
ToString()