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§
- Backend
Config - Configuration options for backend behavior
- Memory
Analysis Data - Comprehensive memory analysis data from tracking session
- Memory
Statistics - Statistical summary of memory tracking session
- Session
Metadata - Session metadata for analysis context
- Tracking
Session - Tracking session handle for controlling active tracking
- Unified
Backend - Main unified backend that orchestrates all memory tracking strategies Acts as the central hub for routing tracking requests to appropriate handlers
Enums§
- Async
Runtime Type - Supported async runtime types for specialized tracking
- Backend
Error - Backend operation errors
- Runtime
Environment - Detected runtime environment characteristics Used to determine optimal tracking strategy
- Tracking
Strategy - Selected tracking strategy based on environment analysis