[−][src]Struct rustc_ap_rustc_data_structures::profiling::SelfProfilerRef
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]
profiler: Option<Arc<SelfProfiler>>,
print_verbose_generic_activities: bool,
print_extra_verbose_generic_activities: bool
) -> SelfProfilerRef
pub fn verbose_generic_activity<'a>(
&'a self,
event_label: &'static str
) -> VerboseTimingGuard<'a>
[src]
&'a self,
event_label: &'static str
) -> VerboseTimingGuard<'a>
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]
&'a self,
event_label: &'static str,
event_arg: A
) -> VerboseTimingGuard<'a> where
A: Borrow<str> + Into<String>,
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]
&self,
event_label: &'static str,
event_arg: A
) -> TimingGuard where
A: Borrow<str> + Into<String>,
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]
fn clone(&self) -> SelfProfilerRef
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl !RefUnwindSafe for SelfProfilerRef
impl Send for SelfProfilerRef
impl Sync for SelfProfilerRef
impl Unpin for SelfProfilerRef
impl !UnwindSafe for SelfProfilerRef
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized,
[src]
T: ?Sized,
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]
U: From<T>,
impl<E> SpecializationError for E
[src]
default fn not_found<S, T>(
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
[src]
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,