Crate memscope_rs

Source
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;

Modules§

allocator
Custom global allocator for tracking memory allocations.
export
Export functionality for memory tracking data.
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.

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.