SystemMonitor
classin packageklyn.system
public class SystemMonitor implements AutoClosable
SystemMonitor
All Implemented Interfaces: AutoClosable

Synchronous, serialized monitoring session for Linux, Windows and KlynOS. Run sample on a worker when the caller must keep a GUI responsive. Options are copied, raw counters stay exact, and rate calculations use only consecutive observations of the same process instance. No timer is created.

Example

try monitor = SystemMonitor(): snapshot = monitor.sample()

Constructors
Modifier and Type Member Description
public SystemMonitor
SystemMonitor(options as MonitorOptions = null)
@param options Null requests all supported metrics.
Methods
Modifier and Type Member Description
public close
close() as Void
Idempotently releases baselines; no operating-system process is stopped.
public resetBaseline
resetBaseline() as Void
Drops baselines; sequence keeps increasing.
public sample
sample() as SystemSnapshot
Captures requested data.
Inherited Methods
methodInherited Methods from AutoClosable: close