Struct rustc_codegen_llvm::back::profiling::LlvmSelfProfiler
source · pub struct LlvmSelfProfiler<'a> {
profiler: Arc<SelfProfiler>,
stack: Vec<TimingGuard<'a>>,
llvm_pass_event_kind: StringId,
}
Fields§
§profiler: Arc<SelfProfiler>
§stack: Vec<TimingGuard<'a>>
§llvm_pass_event_kind: StringId
Implementations§
source§impl<'a> LlvmSelfProfiler<'a>
impl<'a> LlvmSelfProfiler<'a>
pub fn new(profiler: Arc<SelfProfiler>) -> Self
fn before_pass_callback(&'a mut self, pass_name: &str, ir_name: &str)
fn after_pass_callback(&mut self)
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for LlvmSelfProfiler<'a>
impl<'a> Send for LlvmSelfProfiler<'a>
impl<'a> Sync for LlvmSelfProfiler<'a>
impl<'a> Unpin for LlvmSelfProfiler<'a>
impl<'a> !UnwindSafe for LlvmSelfProfiler<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 40 bytes