[][src]Struct rustc_ap_rustc_data_structures::profiling::SelfProfilerRef

pub struct SelfProfilerRef { /* fields omitted */ }

A reference to the SelfProfiler. It can be cloned and sent across thread boundaries at will.

Implementations

impl SelfProfilerRef[src]

pub fn new(
    profiler: Option<Arc<SelfProfiler>>,
    print_verbose_generic_activities: bool,
    print_extra_verbose_generic_activities: bool
) -> SelfProfilerRef
[src]

pub fn verbose_generic_activity<'a>(
    &'a self,
    event_label: &'static str
) -> VerboseTimingGuard<'a>
[src]

Start profiling a verbose generic activity. Profiling continues until the VerboseTimingGuard returned from this call is dropped. In addition to recording a measureme event, "verbose" generic activities also print a timing entry to stdout if the compiler is invoked with -Ztime or -Ztime-passes.

pub fn extra_verbose_generic_activity<'a, A>(
    &'a self,
    event_label: &'static str,
    event_arg: A
) -> VerboseTimingGuard<'a> where
    A: Borrow<str> + Into<String>, 
[src]

Start profiling a extra verbose generic activity. Profiling continues until the VerboseTimingGuard returned from this call is dropped. In addition to recording a measureme event, "extra verbose" generic activities also print a timing entry to stdout if the compiler is invoked with -Ztime-passes.

pub fn generic_activity(&self, event_label: &'static str) -> TimingGuard[src]

Start profiling a generic activity. Profiling continues until the TimingGuard returned from this call is dropped.

pub fn generic_activity_with_arg<A>(
    &self,
    event_label: &'static str,
    event_arg: A
) -> TimingGuard where
    A: Borrow<str> + Into<String>, 
[src]

Start profiling a generic activity. Profiling continues until the TimingGuard returned from this call is dropped.

pub fn query_provider(&self) -> TimingGuard[src]

Start profiling a query provider. Profiling continues until the TimingGuard returned from this call is dropped.

pub fn query_cache_hit(&self, query_invocation_id: QueryInvocationId)[src]

Record a query in-memory cache hit.

pub fn query_blocked(&self) -> TimingGuard[src]

Start profiling a query being blocked on a concurrent execution. Profiling continues until the TimingGuard returned from this call is dropped.

pub fn incr_cache_loading(&self) -> TimingGuard[src]

Start profiling how long it takes to load a query result from the incremental compilation on-disk cache. Profiling continues until the TimingGuard returned from this call is dropped.

pub fn with_profiler(&self, f: impl FnOnce(&SelfProfiler))[src]

pub fn enabled(&self) -> bool[src]

pub fn llvm_recording_enabled(&self) -> bool[src]

pub fn get_self_profiler(&self) -> Option<Arc<SelfProfiler>>[src]

Trait Implementations

impl Clone for SelfProfilerRef[src]

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<'a, T> Captures<'a> for T where
    T: ?Sized
[src]

impl<T> Erased for T[src]

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

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

impl<E> SpecializationError for E[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.