pub enum HardwareEventId {
    CpuCycles,
    Instructions,
    CacheReferences,
    CacheMisses,
    BranchInstructions,
    BranchMisses,
    BusCycles,
    StalledCyclesFrontend,
    StalledCyclesBackend,
    RefCpuCycles,
}

Variants

CpuCycles

PERF_COUNT_HW_CPU_CYCLES

Instructions

PERF_COUNT_HW_INSTRUCTIONS

CacheReferences

PERF_COUNT_HW_CACHE_REFERENCES

CacheMisses

PERF_COUNT_HW_CACHE_MISSES

BranchInstructions

PERF_COUNT_HW_BRANCH_INSTRUCTIONS

BranchMisses

PERF_COUNT_HW_BRANCH_MISSES

BusCycles

PERF_COUNT_HW_BUS_CYCLES

StalledCyclesFrontend

PERF_COUNT_HW_STALLED_CYCLES_FRONTEND

StalledCyclesBackend

PERF_COUNT_HW_STALLED_CYCLES_BACKEND

RefCpuCycles

PERF_COUNT_HW_REF_CPU_CYCLES

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.