Class PerformanceStatus
- Namespace
- McServerLauncher.Services
- Assembly
- McServerLauncher.dll
The monitor's verdict at one moment.
public sealed record PerformanceStatus : IEquatable<PerformanceStatus>
- Inheritance
-
PerformanceStatus
- Implements
- Inherited Members
Constructors
PerformanceStatus(PerformanceLevel, PerformanceCause, double?, double?, int, MemoryPressureReason)
The monitor's verdict at one moment.
public PerformanceStatus(PerformanceLevel Level, PerformanceCause Cause, double? Tps, double? Mspt, int LagWarnings, MemoryPressureReason MemoryReason = MemoryPressureReason.None)
Parameters
LevelPerformanceLevelHow the server is coping.
CausePerformanceCauseThe signal behind
Level; none when it is good or not judged.Tpsdouble?The latest ticks per second, when the server could be asked.
Msptdouble?The latest milliseconds per tick, when the server could be asked.
LagWarningsint"Can't keep up!" warnings in the last five minutes.
MemoryReasonMemoryPressureReasonWhether, and why, the server is short of memory: independent of which cause is named.
Properties
Cause
The signal behind Level; none when it is good or not judged.
public PerformanceCause Cause { get; init; }
Property Value
LagWarnings
"Can't keep up!" warnings in the last five minutes.
public int LagWarnings { get; init; }
Property Value
Level
How the server is coping.
public PerformanceLevel Level { get; init; }
Property Value
MemoryReason
Whether, and why, the server is short of memory: independent of which cause is named.
public MemoryPressureReason MemoryReason { get; init; }
Property Value
Mspt
The latest milliseconds per tick, when the server could be asked.
public double? Mspt { get; init; }
Property Value
Tps
The latest ticks per second, when the server could be asked.
public double? Tps { get; init; }