pub struct DistributedDebugger { /* private fields */ }Expand description
Comprehensive debugging system for distributed training
Implementations§
Source§impl DistributedDebugger
impl DistributedDebugger
Sourcepub fn with_config(config: DebugConfig) -> Self
pub fn with_config(config: DebugConfig) -> Self
Create a new distributed debugger with custom configuration
Sourcepub fn log_event(&self, event: DebugEvent) -> TorshResult<()>
pub fn log_event(&self, event: DebugEvent) -> TorshResult<()>
Log a debug event
Sourcepub fn take_snapshot(&self) -> TorshResult<SystemStateSnapshot>
pub fn take_snapshot(&self) -> TorshResult<SystemStateSnapshot>
Take a system state snapshot
Sourcepub fn start_operation(
&self,
operation_type: String,
ranks: Vec<u32>,
) -> TorshResult<String>
pub fn start_operation( &self, operation_type: String, ranks: Vec<u32>, ) -> TorshResult<String>
Track an active operation
Sourcepub fn update_operation_progress(
&self,
operation_id: &str,
progress_pct: f64,
) -> TorshResult<()>
pub fn update_operation_progress( &self, operation_id: &str, progress_pct: f64, ) -> TorshResult<()>
Update operation progress
Sourcepub fn complete_operation(
&self,
operation_id: &str,
success: bool,
) -> TorshResult<()>
pub fn complete_operation( &self, operation_id: &str, success: bool, ) -> TorshResult<()>
Complete an operation
Sourcepub fn run_diagnostics(&self) -> TorshResult<Vec<DiagnosticResult>>
pub fn run_diagnostics(&self) -> TorshResult<Vec<DiagnosticResult>>
Run comprehensive system diagnostics
Sourcepub fn generate_debug_report(&self) -> TorshResult<String>
pub fn generate_debug_report(&self) -> TorshResult<String>
Generate comprehensive debug report
Sourcepub fn export_debug_data(&self) -> TorshResult<String>
pub fn export_debug_data(&self) -> TorshResult<String>
Export debug data to JSON
Sourcepub fn clear(&self) -> TorshResult<()>
pub fn clear(&self) -> TorshResult<()>
Clear all debug data
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DistributedDebugger
impl RefUnwindSafe for DistributedDebugger
impl Send for DistributedDebugger
impl Sync for DistributedDebugger
impl Unpin for DistributedDebugger
impl UnsafeUnpin for DistributedDebugger
impl UnwindSafe for DistributedDebugger
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