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 | |
|---|---|
| LastMemory | Return the memory allocations of the last execution in bytes. |
| LastMs | Return the duration of the last execution in milliseconds. Can be 0 in case execution time was below System.Diagnostics.Stopwatch.Frequency precision. |
| LastTicks | Return the duration of the last execution in timer ticks. Can be 0 in case execution time was below System.Diagnostics.Stopwatch.Frequency precision. |
| SumMemory | Return the sum of memory allocations of all executions in bytes. |
| SumMs | Return the sum of all execution times in milliseconds. |
| SumTicks | Return the sum of all execution times in timer ticks. |
| UpdateCount | Return the number of system executions. |
| Methods | |
|---|---|
| LastAvgMs(int) | Return the average duration of the last count executions in milliseconds. |
| ToString() |