Add a few more Tracy spans

This commit is contained in:
Ivan Molodetskikh
2023-10-11 14:53:53 +04:00
parent 1d66f1b81e
commit 3602876b5e
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -1079,6 +1079,8 @@ impl<W: LayoutElement> Layout<W> {
}
pub fn advance_animations(&mut self, current_time: Duration) {
let _span = tracy_client::span!("Layout::advance_animations");
match &mut self.monitor_set {
MonitorSet::Normal {
monitors,
@@ -1608,6 +1610,8 @@ impl Monitor<Window> {
&self,
renderer: &mut GlesRenderer,
) -> Vec<MonitorRenderElement<GlesRenderer>> {
let _span = tracy_client::span!("Monitor::render_elements");
let output_scale = Scale::from(self.output.current_scale().fractional_scale());
let output_transform = self.output.current_transform();
let output_mode = self.output.current_mode().unwrap();
+2
View File
@@ -893,6 +893,8 @@ impl Niri {
renderer: &mut GlesRenderer,
output: &Output,
) -> Vec<OutputRenderElements<GlesRenderer>> {
let _span = tracy_client::span!("Niri::pointer_element");
let output_scale = Scale::from(output.current_scale().fractional_scale());
let output_pos = self.global_space.output_geometry(output).unwrap().loc;
let pointer_pos = self.seat.get_pointer().unwrap().current_location() - output_pos.to_f64();