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| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue