pub struct DebugLogger { /* private fields */ }
Expand description
Debug logger for HTML generation
Implementations§
Source§impl DebugLogger
impl DebugLogger
Sourcepub fn with_config(config: DebugConfig) -> Self
pub fn with_config(config: DebugConfig) -> Self
Create a new debug logger with custom configuration
Sourcepub fn start_timing(&self, operation: &str) -> String
pub fn start_timing(&self, operation: &str) -> String
Start timing an operation
Sourcepub fn end_timing(&self, timing_id: &str) -> Option<u64>
pub fn end_timing(&self, timing_id: &str) -> Option<u64>
End timing an operation
Sourcepub fn start_progress(&self, total_steps: usize, initial_operation: &str)
pub fn start_progress(&self, total_steps: usize, initial_operation: &str)
Start progress tracking
Sourcepub fn next_progress_step(&self, operation: &str, total_items: usize)
pub fn next_progress_step(&self, operation: &str, total_items: usize)
Update progress to next step
Sourcepub fn update_progress_items(&self, processed: usize)
pub fn update_progress_items(&self, processed: usize)
Update items processed in current step
Sourcepub fn log_file_operation(
&self,
operation: &str,
file_path: &str,
size_bytes: Option<usize>,
)
pub fn log_file_operation( &self, operation: &str, file_path: &str, size_bytes: Option<usize>, )
Log file operation
Sourcepub fn log_json_processing(
&self,
file_type: &str,
objects_count: usize,
processing_time_ms: u64,
)
pub fn log_json_processing( &self, file_type: &str, objects_count: usize, processing_time_ms: u64, )
Log JSON processing details
Sourcepub fn update_stats<F>(&self, updater: F)where
F: FnOnce(&mut PerformanceStats),
pub fn update_stats<F>(&self, updater: F)where
F: FnOnce(&mut PerformanceStats),
Update performance statistics
Sourcepub fn get_stats(&self) -> PerformanceStats
pub fn get_stats(&self) -> PerformanceStats
Get current performance statistics
Sourcepub fn print_performance_report(&self)
pub fn print_performance_report(&self)
Print comprehensive performance report
Sourcepub fn print_memory_info(&self)
pub fn print_memory_info(&self)
Print memory usage information
Trait Implementations§
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more