Expand description
Memory tracking and visualization tools for Rust applications.
This crate provides tools for tracking memory allocations and visualizing memory usage in Rust applications. It includes a custom global allocator that tracks all heap allocations and deallocations, and provides utilities for exporting memory usage data in various formats.
Re-exports§
pub use allocator::TrackingAllocator;
pub use tracker::get_global_tracker;
pub use tracker::MemoryTracker;
pub use types::AllocationInfo;
pub use types::TrackingError;
pub use types::TrackingResult;
pub use utils::format_bytes;
pub use utils::get_simple_type;
pub use utils::simplify_type_name;
pub use visualization::export_lifecycle_timeline;
pub use visualization::export_memory_analysis;
Modules§
- allocator
- Custom global allocator for tracking memory allocations.
- export_
enhanced - Enhanced export functionality for memory tracking data.
- tracker
- Memory allocation tracking functionality.
- types
- Core types and error handling for the memscope-rs library.
- utils
- Common utility functions shared across modules
- visualization
- Unified visualization module for memscope-rs Provides memory analysis and lifecycle timeline SVG exports
Macros§
- track_
var - Macro to track a variable’s memory allocation.
Statics§
- GLOBAL
- Global tracking allocator instance used when the tracking-allocator feature is enabled.
Traits§
- Trackable
- Trait for types that can be tracked by the memory tracker.
Functions§
- init
- Initialize the memory tracking system.