Skip to main content

window_workspace_bytes

Function window_workspace_bytes 

Source
fn window_workspace_bytes(
    window: &RangeEvaluator,
    last_ts: Option<i64>,
    last: bool,
    fields: &SeriesFields,
    metric: &SeriesLabels,
) -> Result<usize>
Expand description

An upper bound of what window’s next push allocates for its output rows, given the input’s last sample time last_ts and whether it closes the series.

Rows come from RangeEvaluator::output_rows_bound, each possibly its own run. A histogram-valued function adds an index and a doubled table row per field and row, sized by the widest histogram retained or incoming; a result combining disjoint layouts can exceed that and is not bounded.