Struct measureme::Profiler[][src]

pub struct Profiler { /* fields omitted */ }

Implementations

impl Profiler[src]

pub fn new<P: AsRef<Path>>(
    path_stem: P
) -> Result<Profiler, Box<dyn Error + Send + Sync>>
[src]

pub fn with_counter<P: AsRef<Path>>(
    path_stem: P,
    counter: Counter
) -> Result<Profiler, Box<dyn Error + Send + Sync>>
[src]

pub fn map_virtual_to_concrete_string(
    &self,
    virtual_id: StringId,
    concrete_id: StringId
)
[src]

pub fn bulk_map_virtual_to_single_concrete_string<I>(
    &self,
    virtual_ids: I,
    concrete_id: StringId
) where
    I: Iterator<Item = StringId> + ExactSizeIterator
[src]

pub fn alloc_string<STR: SerializableString + ?Sized>(
    &self,
    s: &STR
) -> StringId
[src]

pub fn record_instant_event(
    &self,
    event_kind: StringId,
    event_id: EventId,
    thread_id: u32
)
[src]

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

pub fn start_recording_interval_event<'a>(
    &'a self,
    event_kind: StringId,
    event_id: EventId,
    thread_id: u32
) -> TimingGuard<'a>
[src]

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

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.