Add support for profiling using tracy
This commit is contained in:
parent
929f4fcb05
commit
a1c8b3aa3e
18 changed files with 122 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue