1#![doc = include_str!("../README.md")]
2
3mod budget;
4mod config;
5mod footprint;
6#[cfg(test)]
7mod footprint_tests;
8#[cfg(feature = "heap-profiling")]
9mod heap_profile;
10mod jemalloc;
11mod lease;
12pub mod policy;
13mod reporter;
14mod reservation_error;
15mod resizable;
16mod rss;
17
18pub use budget::{BudgetSnapshot, CacheSnapshot, MemoryBudget, ReporterSnapshot};
19pub use config::BudgetConfig;
20#[cfg(feature = "jemalloc")]
21pub use jemalloc::SystemJemallocStats;
22pub use jemalloc::{JemallocStats, JemallocStatsSource, NoJemallocStats};
23pub use lease::LeaseGuard;
24pub use reporter::{AtomicReporter, GaugeGuard, MemoryGauge, NonCacheReporter};
25pub use reservation_error::ReservationError;
26pub use resizable::{Resizable, ResizableStats};
27pub use rss::{RssSource, SystemRss};
28
29#[cfg(test)]
30mod tests;
31
32#[cfg(test)]
33mod reservation_tests;
34
35#[cfg(test)]
36mod measurement_tests;