Add support for profiling using tracy
This commit is contained in:
parent
929f4fcb05
commit
a1c8b3aa3e
18 changed files with 122 additions and 5 deletions
|
|
@ -847,6 +847,7 @@ impl SpaceElement for CosmicMapped {
|
|||
fn z_index(&self) -> u8 {
|
||||
SpaceElement::z_index(&self.element)
|
||||
}
|
||||
#[profiling::function]
|
||||
fn refresh(&self) {
|
||||
SpaceElement::refresh(&self.element)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -641,6 +641,7 @@ impl SpaceElement for CosmicSurface {
|
|||
SpaceElement::output_leave(&self.0, output)
|
||||
}
|
||||
|
||||
#[profiling::function]
|
||||
fn refresh(&self) {
|
||||
SpaceElement::refresh(&self.0)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -490,11 +490,13 @@ impl SpaceElement for CosmicWindow {
|
|||
});
|
||||
}
|
||||
}
|
||||
#[profiling::function]
|
||||
fn output_enter(&self, output: &Output, overlap: Rectangle<i32, Logical>) {
|
||||
SpaceElement::output_enter(&self.0, output, overlap);
|
||||
self.0
|
||||
.with_program(|p| SpaceElement::output_enter(&p.window, output, overlap));
|
||||
}
|
||||
#[profiling::function]
|
||||
fn output_leave(&self, output: &Output) {
|
||||
SpaceElement::output_leave(&self.0, output);
|
||||
self.0
|
||||
|
|
@ -512,6 +514,7 @@ impl SpaceElement for CosmicWindow {
|
|||
fn z_index(&self) -> u8 {
|
||||
self.0.with_program(|p| SpaceElement::z_index(&p.window))
|
||||
}
|
||||
#[profiling::function]
|
||||
fn refresh(&self) {
|
||||
SpaceElement::refresh(&self.0);
|
||||
if self.0.with_program(|p| {
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@ pub struct MoveGrabState {
|
|||
}
|
||||
|
||||
impl MoveGrabState {
|
||||
#[profiling::function]
|
||||
pub fn render<I, R>(
|
||||
&self,
|
||||
renderer: &mut R,
|
||||
|
|
|
|||
|
|
@ -1095,6 +1095,7 @@ impl FloatingLayout {
|
|||
self.mapped().flat_map(|e| e.windows().map(|(w, _)| w))
|
||||
}
|
||||
|
||||
#[profiling::function]
|
||||
pub fn refresh(&mut self) {
|
||||
#[cfg(feature = "debug")]
|
||||
puffin::profile_function!();
|
||||
|
|
@ -1150,6 +1151,7 @@ impl FloatingLayout {
|
|||
self.refresh(); //fixup any out of bounds elements
|
||||
}
|
||||
|
||||
#[profiling::function]
|
||||
pub fn render<R>(
|
||||
&self,
|
||||
renderer: &mut R,
|
||||
|
|
|
|||
|
|
@ -2303,6 +2303,7 @@ impl TilingLayout {
|
|||
self.queue.push_tree(tree, ANIMATION_DURATION, blocker);
|
||||
}
|
||||
|
||||
#[profiling::function]
|
||||
pub fn refresh(&mut self) {
|
||||
#[cfg(feature = "debug")]
|
||||
puffin::profile_function!();
|
||||
|
|
@ -2934,6 +2935,7 @@ impl TilingLayout {
|
|||
}
|
||||
}
|
||||
|
||||
#[profiling::function]
|
||||
fn update_positions(
|
||||
output: &Output,
|
||||
tree: &mut Tree<Data>,
|
||||
|
|
@ -3801,6 +3803,7 @@ impl TilingLayout {
|
|||
}
|
||||
}
|
||||
|
||||
#[profiling::function]
|
||||
pub fn render<R>(
|
||||
&self,
|
||||
renderer: &mut R,
|
||||
|
|
|
|||
|
|
@ -1515,6 +1515,7 @@ impl Shell {
|
|||
}
|
||||
}
|
||||
|
||||
#[profiling::function]
|
||||
pub fn refresh(&mut self) {
|
||||
#[cfg(feature = "debug")]
|
||||
puffin::profile_function!();
|
||||
|
|
|
|||
|
|
@ -286,6 +286,7 @@ impl Workspace {
|
|||
}
|
||||
}
|
||||
|
||||
#[profiling::function]
|
||||
pub fn refresh(&mut self, xdg_activation_state: &XdgActivationState) {
|
||||
#[cfg(feature = "debug")]
|
||||
puffin::profile_function!();
|
||||
|
|
@ -1059,6 +1060,7 @@ impl Workspace {
|
|||
}
|
||||
}
|
||||
|
||||
#[profiling::function]
|
||||
pub fn render<'a, R>(
|
||||
&self,
|
||||
renderer: &mut R,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue