跳转至

cf::CPUBonusInfoView

Extended CPU information with optional fields. More...

#include <cfcpu_bonus.h>

Public Attributes

Name
cf::span< const std::string_view > features
CPU feature flags (e.g., "neon", "aes", "avx2").
cf::span< constuint32_t > cache_size
Cache sizes in kilobytes. Order: L1, L2, L3 (if available).
bool has_big_little
Indicates whether CPU uses big.LITTLE or DynamIQ architecture.
uint32_t big_core_count
uint32_t little_core_count
std::optional< uint16_t > temperature
CPU temperature in Celsius. May be unavailable on some platforms.

Detailed Description

struct cf::CPUBonusInfoView;

Extended CPU information with optional fields.

Contains CPU features, cache information, big.LITTLE architecture details, and temperature data. Some fields may be empty or unavailable depending on platform and hardware support.

Public Attributes Documentation

variable features

cf::span< const std::string_view > features;

CPU feature flags (e.g., "neon", "aes", "avx2").

variable cache_size

cf::span< constuint32_t > cache_size;

Cache sizes in kilobytes. Order: L1, L2, L3 (if available).

variable has_big_little

bool has_big_little = false;

Indicates whether CPU uses big.LITTLE or DynamIQ architecture.

variable big_core_count

uint32_t big_core_count = 0;

Number of high-performance (big) cores. Valid when has_big_little is true.

variable little_core_count

uint32_t little_core_count = 0;

Number of power-efficient (little) cores. Valid when has_big_little is true.

variable temperature

std::optional< uint16_t > temperature;

CPU temperature in Celsius. May be unavailable on some platforms.


Updated on 2026-03-09 at 10:14:00 +0000