pub async fn compute_frame_stats_for_batch(
ctx: &SessionContext,
frames_rb: RecordBatch,
process_id: &str,
) -> Result<Vec<RecordBatch>>Expand description
Computes frame statistics for a batch of frames.
This function queries the spans table (which is expected to be registered in the SessionContext)
and computes statistics (count, sum of duration) for each budget within the given frame.