Struct CpuInfo¶
Defined in File cpu_info.hpp
Struct Documentation¶
-
struct
ripple
::
CpuInfo
¶ Provides funtionality for cpu related information, such as the properties of the caches, number of available cores, packages, cores per package, and the indices of the package, core and thread which hardware threads should use for improved performance.
Public Functions
-
CpuInfo
() noexcept¶
-
auto
available_cores
() const noexcept -> uint32_t¶ Returns the number of available physical cores.
-
auto
packages
() const noexcept -> uint32_t¶ Returns the number of packages.
-
auto
cores_per_package
() const noexcept -> uint32_t¶ Returns the number of cores per package.
-
auto
cache_info
() noexcept -> CacheContainer&¶ Returns a reference to the container of caches.
-
auto
processor_info
() noexcept -> ProcInfoContainer&¶ Returns a reference to the container of processor information.
-