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

Method sample_selector

src/ui/app.rs:286–299  ·  view source on GitHub ↗
(&mut self, ui: &mut Ui)

Source from the content-addressed store, hash-verified

284 }
285
286 fn sample_selector(&mut self, ui: &mut Ui) {
287 ui.horizontal(|ui| {
288 egui::ComboBox::new("sample_kind", "")
289 .selected_text(format!("{:?}", self.kind))
290 .show_ui(ui, |ui| {
291 ui.selectable_value(&mut self.kind, SampleKind::Mixed, "Mixed");
292 ui.selectable_value(&mut self.kind, SampleKind::OnCPU, "On CPU");
293 ui.selectable_value(&mut self.kind, SampleKind::OffCPU, "Off CPU");
294 ui.selectable_value(&mut self.kind, SampleKind::UProbe, "UProbe");
295 });
296
297 ui.label("Sample kind:");
298 });
299 }
300}

Callers 1

draw_main_windowMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected