(
&mut self,
ui: &mut Ui,
_cfg: &DevfilerConfig,
_kind: SampleKind,
_start: UtcTimestamp,
_end: UtcTimestamp,
)
| 28 | } |
| 29 | |
| 30 | fn update( |
| 31 | &mut self, |
| 32 | ui: &mut Ui, |
| 33 | _cfg: &DevfilerConfig, |
| 34 | _kind: SampleKind, |
| 35 | _start: UtcTimestamp, |
| 36 | _end: UtcTimestamp, |
| 37 | ) -> Option<TabAction> { |
| 38 | ScrollArea::vertical().show(ui, |ui| { |
| 39 | let clicked = ui.small_button("Flush Event Data").clicked(); |
| 40 | if clicked { |
| 41 | tracing::info!("Flushing event data"); |
| 42 | DB.flush_events(); |
| 43 | } |
| 44 | for table in DB.tables() { |
| 45 | ui.collapsing(table.pretty_name(), |ui| { |
| 46 | ui.monospace(table.rocksdb_statistics()); |
| 47 | }); |
| 48 | } |
| 49 | }); |
| 50 | None |
| 51 | } |
| 52 | |
| 53 | fn show_tab_selector(&self, cfg: &DevfilerConfig) -> bool { |
| 54 | cfg.dev_mode |
nothing calls this directly
no test coverage detected