Singleton CpuInfo caching all jau::cpu information.
More...
#include <cpuid.hpp>
|
static const CpuInfo & | get () noexcept |
| Returns reference to const singleton instance. More...
|
|
Singleton CpuInfo caching all jau::cpu information.
Definition at line 316 of file cpuid.hpp.
◆ CpuInfo()
jau::cpu::CpuInfo::CpuInfo |
( |
const CpuInfo & |
| ) |
|
|
delete |
◆ operator=()
void jau::cpu::CpuInfo::operator= |
( |
const CpuInfo & |
| ) |
|
|
delete |
◆ get()
static const CpuInfo & jau::cpu::CpuInfo::get |
( |
| ) |
|
|
inlinestaticnoexcept |
Returns reference to const singleton instance.
Definition at line 356 of file cpuid.hpp.
◆ online_core_count()
size_t jau::cpu::CpuInfo::online_core_count |
( |
| ) |
const |
|
inlinenoexcept |
Returns maximum number of available/online cores, i.e.
max(sys_online_cores, concurrent_threads).
Definition at line 362 of file cpuid.hpp.
◆ toString() [1/2]
std::string jau::cpu::CpuInfo::toString |
( |
std::string & |
sb, |
|
|
bool |
details_only = false |
|
) |
| const |
|
noexcept |
◆ toString() [2/2]
std::string jau::cpu::CpuInfo::toString |
( |
| ) |
const |
|
inlinenoexcept |
◆ pointer_bits
size_t jau::cpu::CpuInfo::pointer_bits |
◆ page_size
size_t jau::cpu::CpuInfo::page_size |
Size of a page in bytes or zero if not available.
Definition at line 321 of file cpuid.hpp.
◆ has_l1_minmax
bool jau::cpu::CpuInfo::has_l1_minmax |
True if successfully queried l1_share_max and l1_apart_min.
Definition at line 323 of file cpuid.hpp.
◆ l1_share_max
size_t jau::cpu::CpuInfo::l1_share_max |
Maximum size of contiguous memory to promote true sharing if has_l1_minmax, or zero.
Definition at line 325 of file cpuid.hpp.
◆ l1_apart_min
size_t jau::cpu::CpuInfo::l1_apart_min |
Minimum offset between two objects to avoid false sharing if has_l1_minmax, or zero.
Definition at line 327 of file cpuid.hpp.
◆ concurrent_threads
size_t jau::cpu::CpuInfo::concurrent_threads |
Number of available concurrent threads (cores) or zero if information is not available, using C++11 std::thread::hardware_concurrency()
Definition at line 329 of file cpuid.hpp.
◆ sys_online_cores
size_t jau::cpu::CpuInfo::sys_online_cores |
Number of available/online cores from system call.
Definition at line 331 of file cpuid.hpp.
◆ sys_max_cores
size_t jau::cpu::CpuInfo::sys_max_cores |
Number of installed/configured cores from system call.
Definition at line 333 of file cpuid.hpp.
◆ family
◆ byte_order
◆ has_arm32_hwcap
bool jau::cpu::CpuInfo::has_arm32_hwcap |
◆ arm32_hwcap1
arm32_hwcap1_t info if available, i.e.
has_arm32_hwcap
Definition at line 340 of file cpuid.hpp.
◆ arm32_hwcap2
arm32_hwcap2_t info if available, i.e.
has_arm32_hwcap
Definition at line 342 of file cpuid.hpp.
◆ has_arm64_hwcap
bool jau::cpu::CpuInfo::has_arm64_hwcap |
◆ arm64_hwcap
arm64_hwcap_t info if available, i.e.
has_arm64_hwcap
Definition at line 346 of file cpuid.hpp.
The documentation for this class was generated from the following files: