Struct ep_dwt::DwtProfiler[][src]

pub struct DwtProfiler<const FREQ: u32> { /* fields omitted */ }
Expand description

DWT trace unit implementing EmbeddedProfiler.

The frequency of the DWT is encoded using the parameter FREQ.

Implementations

Enable the DWT and provide a new EmbeddedProfiler.

Note that the sysclk parameter should come from e.g. the HAL’s clock generation function so the real speed and the declared speed can be compared.

Panics

asserts that the compile time constant FREQ matches the runtime provided sysclk

Trait Implementations

Takes a reading from the clock

Optionally log the snapshot to some output, like a serial port

Optional function that gets called at the start of the snapshot recording. If one would want to very simple profiling, they could use at_start and at_end to simply toggle a GPIO. Read more

Optional function that gets called at the end of the snapshot recording

takes the starting snapshot of a specific trace

computes the duration of the snapshot given the start time, if there hasn’t been overflow 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

Performs the conversion.

Performs the conversion.

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.