Class GameLoopMetricsSnapshot
Immutable snapshot of game-loop runtime metrics.
public sealed class GameLoopMetricsSnapshot
- Inheritance
-
GameLoopMetricsSnapshot
- Inherited Members
Constructors
GameLoopMetricsSnapshot(long, TimeSpan, double, double, long, double, int, long)
public GameLoopMetricsSnapshot(long tickCount, TimeSpan uptime, double averageTickMs, double maxTickMs, long idleSleepCount, double averageWorkUnits, int outboundQueueDepth, long outboundPacketsTotal)
Parameters
tickCountlonguptimeTimeSpanaverageTickMsdoublemaxTickMsdoubleidleSleepCountlongaverageWorkUnitsdoubleoutboundQueueDepthintoutboundPacketsTotallong
Properties
AverageTickMs
[Metric("loop.tick.duration.avg_ms", Aliases = new string[] { "tick.duration.avg_ms" })]
public double AverageTickMs { get; }
Property Value
AverageWorkUnits
[Metric("loop.work.units.avg")]
public double AverageWorkUnits { get; }
Property Value
IdleSleepCount
[Metric("loop.idle.sleep.count")]
public long IdleSleepCount { get; }
Property Value
MaxTickMs
[Metric("loop.tick.duration.max_ms")]
public double MaxTickMs { get; }
Property Value
OutboundPacketsTotal
[Metric("network.outbound.packets.total")]
public long OutboundPacketsTotal { get; }
Property Value
OutboundQueueDepth
[Metric("network.outbound.queue.depth")]
public int OutboundQueueDepth { get; }
Property Value
TickCount
[Metric("ticks.total")]
public long TickCount { get; }
Property Value
Uptime
[Metric("uptime.ms", Transform = MetricValueTransformType.TimeSpanMilliseconds)]
public TimeSpan Uptime { get; }