34#include <unordered_map>
151class metrics_provider;
266 auto name() const -> std::string_view
override {
return "platform_metrics_collector"; }
272 auto collect() -> std::vector<metric>
override;
Pure virtual interface for metric collector plugins.
CRTP base class for metric collectors.
Plugin interface for metric collectors.
Adapter for metric types to support interface definitions.
std::unordered_map< std::string, double > stats_map
Type alias for statistics map.
std::unordered_map< std::string, std::string > config_map
Type alias for configuration map.
@ platform
Platform/system power domain.
Platform context switch statistics.
uint64_t total_switches
Total context switches.
bool available
Whether info is available.
double switches_per_second
Context switches per second.
uint64_t voluntary_switches
Voluntary context switches.
uint64_t involuntary_switches
Involuntary context switches.