MCPcopy Create free account
hub / github.com/elastic/devfiler / update

Method update

src/ui/tabs/dbstats.rs:30–51  ·  view source on GitHub ↗
(
        &mut self,
        ui: &mut Ui,
        _cfg: &DevfilerConfig,
        _kind: SampleKind,
        _start: UtcTimestamp,
        _end: UtcTimestamp,
    )

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

flush_eventsMethod · 0.80
tablesMethod · 0.80
pretty_nameMethod · 0.80
rocksdb_statisticsMethod · 0.80

Tested by

no test coverage detected