Class ProcessStatsService
- Namespace
- McServerLauncher.Services
- Assembly
- McServerLauncher.dll
Computes CPU usage (%) and RAM (MB) of a process, sampling the CPU time between consecutive calls.
public class ProcessStatsService
- Inheritance
-
ProcessStatsService
- Inherited Members
Methods
Reset()
Resets the sampling (when switching process/server).
public void Reset()
Sample(Process?)
Takes a sample of the process stats. Returns null if the process no longer exists.
public ProcessStatsService.Stats? Sample(Process? process)
Parameters
processProcess