Singleton CpuInfo caching all jau::cpu information.
More...
#include <cpuid.hpp>
|
| static const CpuInfo & | get () noexcept |
| | Returns reference to const singleton instance.
|
| |
Singleton CpuInfo caching all jau::cpu information.
Definition at line 179 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 219 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 225 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 184 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 186 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 188 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 190 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 192 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 194 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 196 of file cpuid.hpp.
◆ family
◆ byte_order
◆ has_arm32_hwcap
| bool jau::cpu::CpuInfo::has_arm32_hwcap |
◆ arm32_hwcap1
◆ arm32_hwcap2
◆ has_arm64_hwcap
| bool jau::cpu::CpuInfo::has_arm64_hwcap |
◆ arm64_hwcap
The documentation for this class was generated from the following files: