51class KNP_DECLSPEC
CPU :
public knp::core::Device
57 CPU(
const CPU &) =
delete;
85 [[nodiscard]] knp::core::DeviceType get_type() const override;
91 [[nodiscard]] const std::
string &get_name() const override;
97 [[nodiscard]] uint32_t get_socket_number() const;
103 [[nodiscard]]
float get_power() const override;
109 explicit CPU(uint32_t cpu_num);
110 friend KNP_DECLSPEC std::vector<CPU> list_processors();
116 std::
string cpu_name_;
117 mutable std::unique_ptr<CpuPower> power_meter_;