pub struct PhysicalCore {
pub id: PhysicalId,
pub package_id: u32,
pub core_id: u32,
pub numa_node: Option<u32>,
pub core_type: CoreType,
pub logical_cpus: Vec<LogicalId>,
}Expand description
A physical core: one or more logical CPUs sharing execution resources.
Fields§
§id: PhysicalId§package_id: u32§core_id: u32§numa_node: Option<u32>§core_type: CoreType§logical_cpus: Vec<LogicalId>Logical CPUs belonging to this core, ascending. The first entry is the one CoreScout benchmarks on.
Implementations§
Source§impl PhysicalCore
impl PhysicalCore
Sourcepub fn primary_cpu(&self) -> LogicalId
pub fn primary_cpu(&self) -> LogicalId
The logical CPU CoreScout pins to when measuring this core.
Which sibling we pick is arbitrary but must be stable, otherwise re-running the benchmark silently changes what was measured.
Trait Implementations§
Source§impl Clone for PhysicalCore
impl Clone for PhysicalCore
Source§impl Debug for PhysicalCore
impl Debug for PhysicalCore
Source§impl<'de> Deserialize<'de> for PhysicalCore
impl<'de> Deserialize<'de> for PhysicalCore
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PhysicalCore
Source§impl PartialEq for PhysicalCore
impl PartialEq for PhysicalCore
Source§impl Serialize for PhysicalCore
impl Serialize for PhysicalCore
impl StructuralPartialEq for PhysicalCore
Auto Trait Implementations§
impl Freeze for PhysicalCore
impl RefUnwindSafe for PhysicalCore
impl Send for PhysicalCore
impl Sync for PhysicalCore
impl Unpin for PhysicalCore
impl UnsafeUnpin for PhysicalCore
impl UnwindSafe for PhysicalCore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more