Struct rustc_ap_rustc_data_structures::profiling::SelfProfilerRef [−][src]
pub struct SelfProfilerRef { /* fields omitted */ }
Expand description
A reference to the SelfProfiler. It can be cloned and sent across thread boundaries at will.
Implementations
pub fn new(
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>
pub fn verbose_generic_activity<'a>(
&'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>,
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>,
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.
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>,
pub fn generic_activity_with_arg<A>(
&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 generic_activity_with_args(
&self,
event_label: &'static str,
event_args: &[String]
) -> TimingGuard<'_>
Start profiling a query provider. Profiling continues until the TimingGuard returned from this call is dropped.
Record a query in-memory cache hit.
Start profiling a query being blocked on a concurrent execution. Profiling continues until the TimingGuard returned from this call is dropped.
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.
Trait Implementations
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
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V