Expand description
Lock-free multi-threaded memory tracking Lock-free multi-threaded memory tracking implementation
This module provides a completely separate implementation optimized for high-concurrency scenarios (100+ threads) without any shared state or locks.
Key differences from the single-threaded version:
- Thread-local tracking with zero shared state
- Intelligent sampling for performance
- Binary file format for efficiency
- Offline aggregation and analysis
Use this version when:
- High thread concurrency (20+ threads)
- Performance is critical
- Approximate tracking is acceptable
Use the main version when:
- Single-threaded or low concurrency
- Exact precision is required
- Real-time analysis is needed
Re-exports§
pub use tracker::finalize_thread_tracker;
pub use tracker::init_thread_tracker;
pub use tracker::track_allocation_lockfree;
pub use tracker::track_deallocation_lockfree;
pub use tracker::ThreadLocalTracker;
pub use aggregator::LockfreeAggregator;
pub use analysis::LockfreeAnalysis;
pub use analysis::PerformanceBottleneck;
pub use analysis::ThreadInteraction;
pub use analysis::ThreadStats;
pub use api::is_tracking;
pub use api::memory_snapshot;
pub use api::quick_trace;
pub use api::stop_tracing;
pub use api::trace_all;
pub use api::trace_thread;
pub use api::MemorySnapshot;
pub use sampling::SamplingConfig;
pub use comprehensive_export::export_comprehensive_analysis;
pub use comprehensive_export::export_comprehensive_json;
pub use comprehensive_export::export_resource_rankings_json;
pub use platform_resources::CpuResourceMetrics;
pub use platform_resources::GpuResourceMetrics;
pub use platform_resources::IoResourceMetrics;
pub use platform_resources::PlatformResourceCollector;
pub use platform_resources::PlatformResourceMetrics;
pub use platform_resources::ThreadResourceMetrics;
pub use resource_integration::comprehensive_profile_execution;
pub use resource_integration::ComprehensiveAnalysis;
pub use resource_integration::IntegratedProfilingSession;
pub use visualizer::generate_comprehensive_html_report;
Modules§
- aggregator
- Offline analysis tool for aggregating lock-free multi-threaded binary data.
- analysis
- Analysis structures and types for lock-free tracking results
- api
- Lockfree Memory Tracking API
- comprehensive_
export - Comprehensive export functionality for CPU/GPU/Memory analysis data
- enhanced_
api - Enhanced API with System-wide Resource Profiling
- platform_
resources - Simplified cross-platform CPU resource monitoring for multi-threaded environments
- resource_
integration - Integration layer that combines memory tracking with platform resource monitoring
- sampling
- Intelligent sampling configuration for lock-free tracking
- system_
profiler - System-wide Resource Profiler
- tracker
- Lock-free thread-local memory tracking with intelligent sampling and binary file output.
- visualizer
- Clean HTML Visualizer implementation based on API-Template mapping