Module backend

Module backend 

Source
Expand description
use memscope_rs::unified::{UnifiedBackend, BackendConfig};

fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Initialize unified backend
    let backend = UnifiedBackend::initialize(BackendConfig::default())?;
    Ok(())
}

Structs§

BackendConfig
Configuration options for backend behavior
MemoryAnalysisData
Comprehensive memory analysis data from tracking session
MemoryStatistics
Statistical summary of memory tracking session
SessionMetadata
Session metadata for analysis context
TrackingSession
Tracking session handle for controlling active tracking
UnifiedBackend
Main unified backend that orchestrates all memory tracking strategies Acts as the central hub for routing tracking requests to appropriate handlers

Enums§

AsyncRuntimeType
Supported async runtime types for specialized tracking
BackendError
Backend operation errors
RuntimeEnvironment
Detected runtime environment characteristics Used to determine optimal tracking strategy
TrackingStrategy
Selected tracking strategy based on environment analysis