MCPcopy Index your code
hub / github.com/encounter/objdiff / ui

Method ui

objdiff-gui/src/views/frame_history.rs:56–67  ·  view source on GitHub ↗
(&mut self, ui: &mut egui::Ui)

Source from the content-addressed store, hash-verified

54 pub fn fps(&self) -> f32 { 1.0 / self.frame_times.mean_time_interval().unwrap_or_default() }
55
56 pub fn ui(&mut self, ui: &mut egui::Ui) {
57 ui.label(format!("Mean CPU usage: {:.2} ms / frame", 1e3 * self.mean_frame_time()))
58 .on_hover_text(
59 "Includes egui layout and tessellation time.\n\
60 Does not include GPU usage, nor overhead for sending data to GPU.",
61 );
62 egui::warn_if_debug_build(ui);
63
64 egui::CollapsingHeader::new("📊 CPU usage history").default_open(false).show(ui, |ui| {
65 self.graph(ui);
66 });
67 }
68
69 fn graph(&mut self, ui: &mut egui::Ui) -> egui::Response {
70 use egui::*;

Callers 11

config_uiFunction · 0.80
display_unitFunction · 0.80
symbol_uiFunction · 0.80
debug_uiFunction · 0.80
jobs_uiFunction · 0.80
jobs_menu_uiFunction · 0.80
diff_text_uiFunction · 0.80
font_id_uiFunction · 0.80
diff_view_uiFunction · 0.80
symbol_label_uiFunction · 0.80
data_row_uiFunction · 0.80

Calls 1

graphMethod · 0.80

Tested by

no test coverage detected