Table of Contents

Class GameLoopMetricsSnapshot

Namespace
Moongate.Server.Metrics.Data
Assembly
Moongate.Server.Metrics.dll

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

tickCount long
uptime TimeSpan
averageTickMs double
maxTickMs double
idleSleepCount long
averageWorkUnits double
outboundQueueDepth int
outboundPacketsTotal long

Properties

AverageTickMs

[Metric("loop.tick.duration.avg_ms", Aliases = new string[] { "tick.duration.avg_ms" })]
public double AverageTickMs { get; }

Property Value

double

AverageWorkUnits

[Metric("loop.work.units.avg")]
public double AverageWorkUnits { get; }

Property Value

double

IdleSleepCount

[Metric("loop.idle.sleep.count")]
public long IdleSleepCount { get; }

Property Value

long

MaxTickMs

[Metric("loop.tick.duration.max_ms")]
public double MaxTickMs { get; }

Property Value

double

OutboundPacketsTotal

[Metric("network.outbound.packets.total")]
public long OutboundPacketsTotal { get; }

Property Value

long

OutboundQueueDepth

[Metric("network.outbound.queue.depth")]
public int OutboundQueueDepth { get; }

Property Value

int

TickCount

[Metric("ticks.total")]
public long TickCount { get; }

Property Value

long

Uptime

[Metric("uptime.ms", Transform = MetricValueTransformType.TimeSpanMilliseconds)]
public TimeSpan Uptime { get; }

Property Value

TimeSpan