Skip to main content

memscope_rs/snapshot/
mod.rs

1//! Snapshot Engine - Snapshot construction and aggregation
2//!
3//! This module provides the SnapshotEngine which is responsible for
4//! building memory snapshots from event data.
5
6use std::sync::Arc;
7
8pub mod bindings;
9pub mod builder;
10pub mod engine;
11pub mod memory;
12pub mod state;
13pub mod types;
14
15pub use bindings::{BindingLedger, BindingRecord, LedgerStats};
16pub use builder::build_snapshot_from_events;
17pub use engine::SnapshotEngine;
18pub use state::{AllocationState, LeakAssessment, LeakStatus};
19pub use types::{ActiveAllocation, MemorySnapshot, MemoryStats, ThreadMemoryStats};
20
21/// Shared reference to SnapshotEngine
22pub type SharedSnapshotEngine = Arc<SnapshotEngine>;