pub struct TraceCategoryContext { /* private fields */ }
Expand description
RAII wrapper for a trace context for a specific category.
Implementations§
Source§impl TraceCategoryContext
impl TraceCategoryContext
pub fn acquire_cached( category: &'static CStr, site: &trace_site_t, ) -> Option<TraceCategoryContext>
pub fn acquire(category: &'static CStr) -> Option<TraceCategoryContext>
pub fn register_string_literal(&self, name: &'static CStr) -> trace_string_ref_t
pub fn write_instant( &self, name_ref: trace_string_ref_t, scope: Scope, args: &[Arg<'_>], )
pub fn write_instant_with_inline_name( &self, name: &str, scope: Scope, args: &[Arg<'_>], )
pub fn write_counter_with_inline_name( &self, name: &str, counter_id: u64, args: &[Arg<'_>], )
pub fn write_duration_with_inline_name( &self, name: &str, start_time: BootTicks, args: &[Arg<'_>], )
pub fn write_duration_begin_with_inline_name( &self, name: &str, args: &[Arg<'_>], )
pub fn write_duration_end_with_inline_name(&self, name: &str, args: &[Arg<'_>])
pub fn write_async_begin_with_inline_name( &self, id: Id, name: &str, args: &[Arg<'_>], )
pub fn write_async_end_with_inline_name( &self, id: Id, name: &str, args: &[Arg<'_>], )
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TraceCategoryContext
impl RefUnwindSafe for TraceCategoryContext
impl !Send for TraceCategoryContext
impl !Sync for TraceCategoryContext
impl Unpin for TraceCategoryContext
impl UnwindSafe for TraceCategoryContext
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