Module frame_budget_reporting

Module frame_budget_reporting 

Source
Expand description

Library to validate cpu budgets of traces based on a recurring top-level span

Enums§

GroupBy
Defines how to group frame budgets.

Functions§

budget_map_to_properties
Converts a map of span names to budget categories into a ScalarValue representing a list of properties.
compute_frame_stats_for_batch
Computes frame statistics for a batch of frames.
extract_top_offenders
Extracts top offenders from the frame statistics.
fetch_spans_batch
Fetches spans for a given stream and frames, grouped by the specified configuration.
gen_frame_batches
Generates a stream of record batches from a vector of record batches.
gen_span_batches
Generates and sends span batches to a channel.
get_frames
Retrieves frames for a given stream within a time range and top-level span name.
get_main_thread_stream_id
Retrieves the stream ID of the main thread for a given process.
get_process_start_time
Retrieves the start time of a process.
get_record_batch_time_range
Retrieves the time range (min begin, max end) from a RecordBatch.
get_stream_time_range
Retrieves the time range of a stream.
merge_top_offenders
Merges top offenders from multiple record batches.
process_frame_batch
Processes a batch of frames, computing frame statistics and extracting top offenders.