Skip to main content

ralph_workflow/monitoring/memory_metrics/
mod.rs

1//! Production memory profiling and metrics.
2//!
3//! This module provides lightweight memory usage tracking for production
4//! deployments. It enables detection of memory issues without requiring
5//! external profiling tools.
6//!
7//! # Feature Flag
8//!
9//! This module is only available when the `monitoring` feature is enabled.
10
11pub(super) mod backends;
12pub(super) mod collector;
13pub(super) mod snapshot;
14
15pub use backends::{LoggingBackend, NoOpBackend, TelemetryBackend};
16pub use collector::MemoryMetricsCollector;
17pub use snapshot::MemorySnapshot;
18
19#[cfg(test)]
20mod tests {
21    use super::*;
22
23    include!("tests.rs");
24}