1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
//! A zero-config simple histogram collector. ~160ns/collection with a random input, //! ~65ns/collection on already existing metrics. Uses logarithmic bucketing //! rather than sampling have bounded (generally <0.5%) error percentiles. #![deny(missing_docs)] #![cfg_attr(test, deny(warnings))] extern crate coco; use radix::Radix; pub use histo::Histo; macro_rules! rep_no_copy { ($e:expr; $n:expr) => { { let mut v = Vec::with_capacity($n); for _ in 0..$n { v.push($e); } v } }; } mod radix; mod histo;