debug: More profiling annotations
This commit is contained in:
parent
465813c1c5
commit
a65e1d6b5f
8 changed files with 20 additions and 0 deletions
|
|
@ -99,6 +99,7 @@ impl Shell {
|
|||
/// Set the keyboard focus to the given target
|
||||
/// Note: `update_cursor` is used to determine whether to update the pointer location if cursor_follows_focus is enabled
|
||||
/// if the focus change was due to a pointer event, this should be set to false
|
||||
#[profiling::function]
|
||||
pub fn set_focus(
|
||||
state: &mut State,
|
||||
target: Option<&KeyboardFocusTarget>,
|
||||
|
|
@ -224,6 +225,7 @@ impl Shell {
|
|||
}
|
||||
|
||||
/// Internal, used to ensure that ActiveFocus, KeyboardFocusTarget, and FocusedOutput are all in sync
|
||||
#[profiling::function]
|
||||
fn update_focus_state(
|
||||
seat: &Seat<State>,
|
||||
target: Option<&KeyboardFocusTarget>,
|
||||
|
|
@ -327,6 +329,7 @@ fn raise_with_children(floating_layer: &mut FloatingLayout, focused: &CosmicMapp
|
|||
}
|
||||
|
||||
impl Common {
|
||||
#[profiling::function]
|
||||
pub fn refresh_focus(state: &mut State) {
|
||||
let seats = state
|
||||
.common
|
||||
|
|
|
|||
|
|
@ -1408,6 +1408,7 @@ impl Common {
|
|||
self.idle_notifier_state.set_is_inhibited(is_inhibited);
|
||||
}
|
||||
|
||||
#[profiling::function]
|
||||
pub fn on_commit(&mut self, surface: &WlSurface) {
|
||||
{
|
||||
let shell = self.shell.read();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue