1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#![warn(missing_debug_implementations)] #[macro_use] extern crate error_chain; #[macro_use] extern crate lazy_static; mod state; mod util; pub mod error; pub mod profiler; pub use profiler::*; #[cfg(feature = "heap")] pub mod heap_profiler; #[cfg(feature = "heap")] pub use heap_profiler::*; #[cfg(feature = "heap")] mod tcmalloc; #[cfg(feature = "heap")] static GLOBAL: tcmalloc::TCMalloc = tcmalloc::TCMalloc;