debug: Drop puffin integration

This commit is contained in:
Victoria Brekenfeld 2024-03-21 17:49:06 +01:00
parent b5cbe0207f
commit d341cb8b86
13 changed files with 7 additions and 173 deletions

View file

@ -1097,9 +1097,6 @@ impl FloatingLayout {
#[profiling::function]
pub fn refresh(&mut self) {
#[cfg(feature = "debug")]
puffin::profile_function!();
self.space.refresh();
if let Some(pos) = self.spawn_order.iter().position(|w| !w.alive()) {
@ -1171,9 +1168,6 @@ impl FloatingLayout {
CosmicWindowRenderElement<R>: RenderElement<R>,
CosmicStackRenderElement<R>: RenderElement<R>,
{
#[cfg(feature = "debug")]
puffin::profile_function!();
let output = self.space.outputs().next().unwrap();
let output_geometry = {
let layers = layer_map_for_output(output);

View file

@ -2305,9 +2305,6 @@ impl TilingLayout {
#[profiling::function]
pub fn refresh(&mut self) {
#[cfg(feature = "debug")]
puffin::profile_function!();
let dead_windows = self
.mapped()
.map(|(w, _)| w.clone())
@ -2941,9 +2938,6 @@ impl TilingLayout {
tree: &mut Tree<Data>,
gaps: (i32, i32),
) -> Option<TilingBlocker> {
#[cfg(feature = "debug")]
puffin::profile_function!();
if let Some(root_id) = tree.root_node_id() {
let mut configures = Vec::new();
@ -3827,9 +3821,6 @@ impl TilingLayout {
CosmicWindowRenderElement<R>: RenderElement<R>,
CosmicStackRenderElement<R>: RenderElement<R>,
{
#[cfg(feature = "debug")]
puffin::profile_function!();
let output_scale = self.output.current_scale().fractional_scale();
let (target_tree, duration, _) = if self.queue.animation_start.is_some() {