base/system/cpu/private/cpu_host.h¶
Internal data structures for CPU information storage. More...
Namespaces¶
| Name |
|---|
| cf |
Classes¶
| Name | |
|---|---|
| struct | cf::CPUInfoHost Internal storage for basic CPU information. |
| struct | cf::CPUBonusInfoHost Internal storage for extended CPU information. |
Detailed Description¶
Internal data structures for CPU information storage.
Author: Charliechen114514
Version: 0.1
Since: 0.1
Date: 2026-02-21
Warning: This is an internal header. Do not include directly.
Defines host-side storage structures used by platform-specific implementations. These structures own the underlying data that is exposed as views in the public API.
Source code¶
#pragma once
#include <cstdint>
#include <optional>
#include <string>
#include <vector>
namespace cf {
struct CPUInfoHost {
std::string model;
std::string manufest;
std::string arch;
};
struct CPUBonusInfoHost {
std::vector<std::string> features;
std::vector<uint32_t> cache_size;
bool has_big_little = false;
uint32_t big_core_count = 0;
uint32_t little_core_count = 0;
std::optional<uint16_t> temperature;
};
} // namespace cf
Updated on 2026-03-09 at 10:14:01 +0000