memscope-rs 0.2.6

A memory tracking library for Rust applications.
Documentation
//! Snapshot Engine - Snapshot construction and aggregation
//!
//! This module provides the SnapshotEngine which is responsible for
//! building memory snapshots from event data.

use std::sync::Arc;

pub mod bindings;
pub mod builder;
pub mod engine;
pub mod memory;
pub mod state;
pub mod types;

pub use bindings::{BindingLedger, BindingRecord, LedgerStats};
pub use builder::build_snapshot_from_events;
pub use engine::SnapshotEngine;
pub use state::{AllocationState, LeakAssessment, LeakStatus};
pub use types::{ActiveAllocation, MemorySnapshot, MemoryStats, ThreadMemoryStats};

/// Shared reference to SnapshotEngine
pub type SharedSnapshotEngine = Arc<SnapshotEngine>;