Table of Contents

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

Level PerformanceLevel

How the server is coping.

Cause PerformanceCause

The signal behind Level; none when it is good or not judged.

Tps double?

The latest ticks per second, when the server could be asked.

Mspt double?

The latest milliseconds per tick, when the server could be asked.

LagWarnings int

"Can't keep up!" warnings in the last five minutes.

MemoryReason MemoryPressureReason

Whether, 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

PerformanceCause

LagWarnings

"Can't keep up!" warnings in the last five minutes.

public int LagWarnings { get; init; }

Property Value

int

Level

How the server is coping.

public PerformanceLevel Level { get; init; }

Property Value

PerformanceLevel

MemoryReason

Whether, and why, the server is short of memory: independent of which cause is named.

public MemoryPressureReason MemoryReason { get; init; }

Property Value

MemoryPressureReason

Mspt

The latest milliseconds per tick, when the server could be asked.

public double? Mspt { get; init; }

Property Value

double?

Tps

The latest ticks per second, when the server could be asked.

public double? Tps { get; init; }

Property Value

double?