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
CpuPercentdoubleCPU since the previous sample, normalised across cores, so 100 means every core of the machine busy.
RamMblongWorking set in MB.
UptimeTimeSpanHow long this run has lasted.
PrivateMblongMemory 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
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
RamMb
Working set in MB.
public long RamMb { get; init; }
Property Value
Uptime
How long this run has lasted.
public TimeSpan Uptime { get; init; }