PlatformSampler

Abstract base for platform-specific system resource sampling.

Inherited By LinuxSampler and monitor::testing::SyntheticSampler
Group monitor

Declared in src/libs/libinventory/inventory/sampler/PlatformSampler.hpp.

Detailed description

PlatformSampler defines the interface for collecting CPU, GPU, memory, disk, network, filesystem, and process metrics. The static create() factory returns the appropriate implementation for the current OS: LinuxSampler on Linux, WindowsSampler (below) on Windows.

See also LinuxSampler, ResourceMonitor.

In this section