Table of Contents

Class ProcessStatsService.Stats

Namespace
McServerLauncher.Services
Assembly
McServerLauncher.dll

One sample of a running server's cost, as the status cards show it.

public record ProcessStatsService.Stats : IEquatable<ProcessStatsService.Stats>
Inheritance
ProcessStatsService.Stats
Implements
Inherited Members

Constructors

Stats(double, long, TimeSpan, long)

One sample of a running server's cost, as the status cards show it.

public Stats(double CpuPercent, long RamMb, TimeSpan Uptime, long PrivateMb = 0)

Parameters

CpuPercent double

CPU since the previous sample, normalised across cores, so 100 means every core of the machine busy.

RamMb long

Working set in MB.

Uptime TimeSpan

How long this run has lasted.

PrivateMb long

Memory only this process holds, in MB (see ProcessMemory). The working set when the system will not say.

Properties

CpuPercent

CPU since the previous sample, normalised across cores, so 100 means every core of the machine busy.

public double CpuPercent { get; init; }

Property Value

double

PrivateMb

Memory only this process holds, in MB (see ProcessMemory). The working set when the system will not say.

public long PrivateMb { get; init; }

Property Value

long

RamMb

Working set in MB.

public long RamMb { get; init; }

Property Value

long

Uptime

How long this run has lasted.

public TimeSpan Uptime { get; init; }

Property Value

TimeSpan