#[non_exhaustive]pub struct AccessSummary {
pub instructions: u64,
pub l1_hits: u64,
pub l3_hits: u64,
pub ram_accesses: u64,
}
Expand description
High-level memory access stats summarized from CachegrindStats
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.instructions: u64
Total number of instructions executed.
l1_hits: u64
Total number of L1 cache hits (including instruction reads, data reads and data writes).
l3_hits: u64
Total number of L2 / L3 cache hits (including instruction reads, data reads and data writes).
ram_accesses: u64
Total number of RAM accesses.
Implementations§
Source§impl AccessSummary
impl AccessSummary
Sourcepub fn estimated_cycles(&self) -> u64
pub fn estimated_cycles(&self) -> u64
Returns the estimated number of CPU cycles using Itamar Turner-Trauring’s formula.
Trait Implementations§
Source§impl Clone for AccessSummary
impl Clone for AccessSummary
Source§fn clone(&self) -> AccessSummary
fn clone(&self) -> AccessSummary
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AccessSummary
impl Debug for AccessSummary
Source§impl From<FullCachegrindStats> for AccessSummary
impl From<FullCachegrindStats> for AccessSummary
Source§fn from(stats: FullCachegrindStats) -> Self
fn from(stats: FullCachegrindStats) -> Self
Converts to this type from the input type.
impl Copy for AccessSummary
Auto Trait Implementations§
impl Freeze for AccessSummary
impl RefUnwindSafe for AccessSummary
impl Send for AccessSummary
impl Sync for AccessSummary
impl Unpin for AccessSummary
impl UnwindSafe for AccessSummary
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