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<C: CategoryString>( category: C, site: &trace_site_t, ) -> Option<TraceCategoryContext>
pub fn acquire<C: CategoryString>(category: C) -> Option<TraceCategoryContext>
pub fn register_string_literal<T: CategoryString>( &self, name: T, ) -> trace_string_ref_t
pub fn register_str(&self, name: &'static str) -> 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<'_>], )
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