evobench_tools/stats_tables/tables/table_field_view.rs
1//! Stats related, e.g. for flamegraph
2
3use crate::{
4 join::KeyVal,
5 stats_tables::{stats::StatsField, tables::table_view::TableView},
6};
7
8/// A full table, key and single value. dyn compatible. Combine with
9/// TableView for `table_name`.
10pub trait TableFieldView<const TILE_COUNT: usize>: TableView {
11 /// Access to the list of (key / selected value)
12 fn table_key_vals<'s>(
13 &'s self,
14 stats_field: StatsField<TILE_COUNT>,
15 ) -> Box<dyn Iterator<Item = KeyVal<&'s str, u64>> + 's>;
16
17 /// Return the physical unit name for one step of the u64 values
18 fn resolution_unit(&self) -> String;
19}