pub fn new<Report: 'static + MetricsReport>(
        name: impl Into<String>,
        report: Report,
        allocator: Alloc,
    ) -> Self {
        Self {
            name: name.into(),
            allocator,
            by_type: HashMap::new(),
            total: Metrics::default(),
            report: Box::new(report),
        }
    }
/// Decorate an existing allocator with support for metrics.
Decorate an existing allocator with support for metrics.
Decorate an existing allocator with support for metrics .
pub fn new<Report: 'static + MetricsReport>(
        name: impl Into<String>,
        report: Report,
        allocator: Alloc,
    ) -> Self {
        Self {
            name: name.into(),
            allocator,
            by_type: HashMap::new(),
            total: Metrics::default(),
            report: Box::new(report),
        }
    }
pub fn new < Report : ' static + MetricsReport > ( name : impl Into < String > , report : Report , allocator : Alloc , ) -> Self { Self { name : name . into ( ) , allocator , by_type : HashMap :: new ( ) , total : Metrics :: default ( ) , report : Box :: new ( report ) , } }
Decorate an existing allocator with support for metrics.
Decorate an existing allocator with support for metrics .
name
impl Into<String>
report
Report
allocator
Alloc