trace complete calendar draw()

This commit is contained in:
Fabrizio Iannetti 2024-05-12 07:38:27 +02:00
parent 24995d8021
commit f2d3483bd2
2 changed files with 11 additions and 4 deletions

View File

@ -21,8 +21,10 @@ fn setup_tracepoints() {
// drawing events // drawing events
draw_class.instantiate("draw_entry"); draw_class.instantiate("draw_entry");
draw_class.instantiate("draw_exit"); draw_class.instantiate("draw_exit");
draw_class.instantiate("draw_days_entry"); draw_class.instantiate("draw_calendar_entry");
draw_class.instantiate("draw_days_exit"); draw_class.instantiate("draw_calendar_exit");
draw_class.instantiate("draw_events_entry");
draw_class.instantiate("draw_events_exit");
// class for application events // class for application events
let app_class = provider.create_class("app"); let app_class = provider.create_class("app");

View File

@ -123,7 +123,7 @@ fn render_events_in_row<Renderer>(
} }
#[cfg(feature = "tracing")] #[cfg(feature = "tracing")]
tracepoints::calendar::draw_days_entry(row_bounds.width as i32, row_bounds.height as i32); tracepoints::calendar::draw_events_entry(row_bounds.width as i32, row_bounds.height as i32);
#[derive(Debug)] #[derive(Debug)]
struct EventBar<'a> { struct EventBar<'a> {
@ -244,7 +244,7 @@ fn render_events_in_row<Renderer>(
} }
} }
#[cfg(feature = "tracing")] #[cfg(feature = "tracing")]
tracepoints::calendar::draw_days_exit(row_bounds.width as i32, row_bounds.height as i32); tracepoints::calendar::draw_events_exit(row_bounds.width as i32, row_bounds.height as i32);
} }
@ -649,6 +649,9 @@ where
let bounds = layout.bounds(); let bounds = layout.bounds();
let margin: f32 = 20.0; let margin: f32 = 20.0;
#[cfg(feature = "tracing")]
tracepoints::calendar::draw_calendar_entry(bounds.width as i32, bounds.height as i32);
// side column only visible if there is enough space // side column only visible if there is enough space
let sidebar_width = self.get_sidebar_width(renderer, bounds.size()); let sidebar_width = self.get_sidebar_width(renderer, bounds.size());
@ -697,6 +700,8 @@ where
height, height,
}, },
); );
#[cfg(feature = "tracing")]
tracepoints::calendar::draw_calendar_exit(bounds.width as i32, bounds.height as i32);
} }
} }