debug: Drop puffin integration
This commit is contained in:
parent
b5cbe0207f
commit
d341cb8b86
13 changed files with 7 additions and 173 deletions
|
|
@ -75,9 +75,6 @@ impl MoveGrabState {
|
|||
CosmicMappedRenderElement<R>: RenderElement<R>,
|
||||
I: From<CosmicMappedRenderElement<R>>,
|
||||
{
|
||||
#[cfg(feature = "debug")]
|
||||
puffin::profile_function!();
|
||||
|
||||
let scale = if self.previous == ManagedLayer::Tiling {
|
||||
0.6 + ((1.0
|
||||
- (Instant::now().duration_since(self.start).as_millis() as f64
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -1517,9 +1517,6 @@ impl Shell {
|
|||
|
||||
#[profiling::function]
|
||||
pub fn refresh(&mut self) {
|
||||
#[cfg(feature = "debug")]
|
||||
puffin::profile_function!();
|
||||
|
||||
self.popups.cleanup();
|
||||
|
||||
self.xdg_activation_state.retain_tokens(|_, data| {
|
||||
|
|
|
|||
|
|
@ -288,9 +288,6 @@ impl Workspace {
|
|||
|
||||
#[profiling::function]
|
||||
pub fn refresh(&mut self, xdg_activation_state: &XdgActivationState) {
|
||||
#[cfg(feature = "debug")]
|
||||
puffin::profile_function!();
|
||||
|
||||
// TODO: `Option::take_if` once stabilitized
|
||||
if self.fullscreen.as_ref().is_some_and(|w| !w.alive()) {
|
||||
let _ = self.fullscreen.take();
|
||||
|
|
@ -1084,9 +1081,6 @@ impl Workspace {
|
|||
CosmicStackRenderElement<R>: RenderElement<R>,
|
||||
WorkspaceRenderElement<R>: RenderElement<R>,
|
||||
{
|
||||
#[cfg(feature = "debug")]
|
||||
puffin::profile_function!();
|
||||
|
||||
let mut window_elements = Vec::new();
|
||||
let mut popup_elements = Vec::new();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue