pub struct DebugLogger { /* private fields */ }
Expand description
Debugging logger.
Implementations§
Source§impl DebugLogger
impl DebugLogger
Sourcepub fn profile_level(&self) -> Option<ProfileLevel>
pub fn profile_level(&self) -> Option<ProfileLevel>
Returns the profile level, none if profiling is deactivated.
Sourcepub fn register_profiled<Name>(&mut self, name: Name, duration: Duration)where
Name: Display,
pub fn register_profiled<Name>(&mut self, name: Name, duration: Duration)where
Name: Display,
Register a profiled task.
Sourcepub fn is_activated(&self) -> bool
pub fn is_activated(&self) -> bool
Returns whether the debug logger is activated.
Sourcepub fn debug<I>(&mut self, arg: I) -> Iwhere
I: Display,
pub fn debug<I>(&mut self, arg: I) -> Iwhere
I: Display,
Log the argument to a file when the debug logger is activated.
Sourcepub fn profile_summary(&mut self)
pub fn profile_summary(&mut self)
Show the profiling summary if activated and reset its state.
Trait Implementations§
Source§impl Debug for DebugLogger
impl Debug for DebugLogger
Source§impl Default for DebugLogger
impl Default for DebugLogger
Source§fn default() -> DebugLogger
fn default() -> DebugLogger
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DebugLogger
impl RefUnwindSafe for DebugLogger
impl Send for DebugLogger
impl Sync for DebugLogger
impl Unpin for DebugLogger
impl UnwindSafe for DebugLogger
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