Struct measureme::Profiler[][src]

pub struct Profiler { /* fields omitted */ }

Implementations

Records an event with the given parameters. The event time is computed automatically.

Records an event with the given parameters. The event time is computed automatically.

Creates a “start” event and returns a TimingGuard that will create the corresponding “end” event when it is dropped.

Creates a “start” event and returns a DetachedTiming. To create the corresponding “event” event, you must call finish_recording_internal_event with the returned DetachedTiming. Since DetachedTiming does not capture the lifetime of &self, this method can sometimes be more convenient than start_recording_interval_event - e.g. it can be stored in a struct without the need to add a lifetime parameter.

Creates the corresponding “end” event for the “start” event represented by timing. You must have obtained timing from the same Profiler

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.