game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
CPUInfo Struct Reference

Detected CPU information. More...

#include <system_info_service.h>

Public Member Functions

bool hasOptimalGovernor () const
bool isGamingOptimal () const
bool isPerformanceGovernor () const
bool isSchedExtActive () const

Public Attributes

int coreCount = 0
int efficiencyCores = 0
double frequencyMHz = 0.0
std::string governor
bool hasSchedExt = false
bool isHybrid = false
double maxFrequencyMHz = 0.0
std::string model
int performanceCores = 0
std::string schedExtName
CPUScheduler scheduler = CPUScheduler::Unknown
int threadCount = 0
std::string vendor

Detailed Description

Detected CPU information.

Definition at line 276 of file system_info_service.h.

Member Function Documentation

◆ hasOptimalGovernor()

bool CPUInfo::hasOptimalGovernor ( ) const
inline

Definition at line 297 of file system_info_service.h.

References governor.

◆ isGamingOptimal()

bool CPUInfo::isGamingOptimal ( ) const
inline

Definition at line 308 of file system_info_service.h.

References BORE, SchedExt_LAVD, and scheduler.

◆ isPerformanceGovernor()

bool CPUInfo::isPerformanceGovernor ( ) const
inline

Definition at line 293 of file system_info_service.h.

References governor.

◆ isSchedExtActive()

bool CPUInfo::isSchedExtActive ( ) const
inline

Member Data Documentation

◆ coreCount

int CPUInfo::coreCount = 0

Definition at line 280 of file system_info_service.h.

◆ efficiencyCores

int CPUInfo::efficiencyCores = 0

Definition at line 283 of file system_info_service.h.

◆ frequencyMHz

double CPUInfo::frequencyMHz = 0.0

Definition at line 284 of file system_info_service.h.

◆ governor

std::string CPUInfo::governor

Definition at line 286 of file system_info_service.h.

Referenced by hasOptimalGovernor(), and isPerformanceGovernor().

◆ hasSchedExt

bool CPUInfo::hasSchedExt = false

Definition at line 290 of file system_info_service.h.

◆ isHybrid

bool CPUInfo::isHybrid = false

Definition at line 289 of file system_info_service.h.

◆ maxFrequencyMHz

double CPUInfo::maxFrequencyMHz = 0.0

Definition at line 285 of file system_info_service.h.

◆ model

std::string CPUInfo::model

Definition at line 278 of file system_info_service.h.

◆ performanceCores

int CPUInfo::performanceCores = 0

Definition at line 282 of file system_info_service.h.

◆ schedExtName

std::string CPUInfo::schedExtName

Definition at line 288 of file system_info_service.h.

◆ scheduler

CPUScheduler CPUInfo::scheduler = CPUScheduler::Unknown

Definition at line 287 of file system_info_service.h.

Referenced by isGamingOptimal(), and isSchedExtActive().

◆ threadCount

int CPUInfo::threadCount = 0

Definition at line 281 of file system_info_service.h.

◆ vendor

std::string CPUInfo::vendor

Definition at line 279 of file system_info_service.h.


The documentation for this struct was generated from the following file: