Module strategies

Module strategies 

Source
Expand description

§Memory Tracking Strategies

This module provides concrete implementations of memory tracking strategies optimized for different runtime environments.

§Available Strategies

§Design Principles

All strategies implement the unified MemoryTracker trait and follow:

  • Zero-lock architecture: No mutex or rwlock usage
  • Minimal overhead: <3% performance impact target
  • Data compatibility: Consistent export formats
  • Graceful fallback: Error recovery without data loss

Re-exports§

pub use async_strategy::AsyncStrategy;
pub use hybrid_strategy::HybridStrategy;
pub use single_thread::SingleThreadStrategy;
pub use thread_local::ThreadLocalStrategy;

Modules§

async_strategy
hybrid_strategy
single_thread
thread_local

Structs§

PerformanceHistory
Performance history tracking for strategy optimization Maintains historical performance data to guide strategy selection
StrategyFactory
Strategy factory for creating appropriate tracker implementations Provides centralized strategy creation with proper configuration
StrategyPerformance
Performance metrics for individual strategy Tracks key performance indicators for strategy evaluation
StrategyRequirements
Strategy selection requirements Defines criteria for optimal strategy selection