diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-10-11 14:53:53 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-10-11 14:53:53 +0400 |
| commit | 3602876b5e62ac64cc6ef7543e87c72b364939ee (patch) | |
| tree | d691cd2361dca5164fc9dbd4d6a9c6fea30d2564 /src/layout.rs | |
| parent | 1d66f1b81e7885af3538d56e97b0c481683e9b0b (diff) | |
| download | niri-3602876b5e62ac64cc6ef7543e87c72b364939ee.tar.gz niri-3602876b5e62ac64cc6ef7543e87c72b364939ee.tar.bz2 niri-3602876b5e62ac64cc6ef7543e87c72b364939ee.zip | |
Add a few more Tracy spans
Diffstat (limited to 'src/layout.rs')
| -rw-r--r-- | src/layout.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/layout.rs b/src/layout.rs index 4754e385..b9b404ab 100644 --- a/src/layout.rs +++ b/src/layout.rs @@ -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(); |
