pub enum CachegrindMetric {
Show 26 variants
Ir,
Dr,
Dw,
I1mr,
D1mr,
D1mw,
ILmr,
DLmr,
DLmw,
I1MissRate,
LLiMissRate,
D1MissRate,
LLdMissRate,
LLMissRate,
L1hits,
LLhits,
RamHits,
L1HitRate,
LLHitRate,
RamHitRate,
TotalRW,
EstimatedCycles,
Bc,
Bcm,
Bi,
Bim,
}
default
only.Expand description
All metrics which cachegrind produces and additionally some derived events
Depending on the options passed to Cachegrind, these are the events that Cachegrind can produce. See the Cachegrind documentation for details.
Variants§
Ir
The default event. I cache reads (which equals the number of instructions executed)
Dr
D Cache reads (which equals the number of memory reads) (–cache-sim=yes)
Dw
D Cache writes (which equals the number of memory writes) (–cache-sim=yes)
I1mr
I1 cache read misses (–cache-sim=yes)
D1mr
D1 cache read misses (–cache-sim=yes)
D1mw
D1 cache write misses (–cache-sim=yes)
ILmr
LL cache instruction read misses (–cache-sim=yes)
DLmr
LL cache data read misses (–cache-sim=yes)
DLmw
LL cache data write misses (–cache-sim=yes)
I1MissRate
I1 cache miss rate (–cache-sim=yes)
LLiMissRate
LL/L2 instructions cache miss rate (–cache-sim=yes)
D1MissRate
D1 cache miss rate (–cache-sim=yes)
LLdMissRate
LL/L2 data cache miss rate (–cache-sim=yes)
LLMissRate
LL/L2 cache miss rate (–cache-sim=yes)
L1hits
Derived event showing the L1 hits (–cache-sim=yes)
LLhits
Derived event showing the LL hits (–cache-sim=yes)
RamHits
Derived event showing the RAM hits (–cache-sim=yes)
L1HitRate
L1 cache hit rate (–cache-sim=yes)
LLHitRate
LL/L2 cache hit rate (–cache-sim=yes)
RamHitRate
RAM hit rate (–cache-sim=yes)
TotalRW
Derived event showing the total amount of cache reads and writes (–cache-sim=yes)
EstimatedCycles
Derived event showing estimated CPU cycles (–cache-sim=yes)
Bc
Conditional branches executed (–branch-sim=yes)
Bcm
Conditional branches mispredicted (–branch-sim=yes)
Bi
Indirect branches executed (–branch-sim=yes)
Bim
Indirect branches mispredicted (–branch-sim=yes)
Implementations§
Source§impl CachegrindMetric
impl CachegrindMetric
Sourcepub fn is_derived(&self) -> bool
pub fn is_derived(&self) -> bool
Return true if this EventKind
is a derived event
Derived events are calculated from Cachegrind’s native event types the same ways as for
callgrind’s EventKind
CachegrindMetric::L1hits
CachegrindMetric::LLhits
CachegrindMetric::RamHits
CachegrindMetric::TotalRW
CachegrindMetric::EstimatedCycles
CachegrindMetric::I1MissRate
CachegrindMetric::D1MissRate
CachegrindMetric::LLiMissRate
CachegrindMetric::LLdMissRate
CachegrindMetric::LLMissRate
CachegrindMetric::L1HitRate
CachegrindMetric::LLHitRate
CachegrindMetric::RamHitRate
pub fn from_str_ignore_case(value: &str) -> Option<CachegrindMetric>
pub fn to_name(&self) -> String
Trait Implementations§
Source§impl Clone for CachegrindMetric
impl Clone for CachegrindMetric
Source§fn clone(&self) -> CachegrindMetric
fn clone(&self) -> CachegrindMetric
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more