Function log_arrangement_size_inner

Source
fn log_arrangement_size_inner<G, B, L>(
    arranged: Arranged<G, TraceAgent<Spine<Rc<B>>>>,
    logic: L,
) -> Arranged<G, TraceAgent<Spine<Rc<B>>>>
where G: Scope<Timestamp: Lattice>, B: Batch + 'static, L: FnMut(&B) -> (usize, usize, usize) + 'static,
Expand description

Helper for ArrangementSize to install a common operator holding on to a trace.

  • arranged: The arrangement to inspect.
  • logic: Closure that calculates the heap size/capacity/allocations for a batch. The return value are size and capacity in bytes, and number of allocations, all in absolute values.