Add support for profiling using tracy

This commit is contained in:
Ian Douglas Scott 2023-10-07 19:15:44 -07:00 committed by Victoria Brekenfeld
parent 929f4fcb05
commit a1c8b3aa3e
18 changed files with 122 additions and 5 deletions

View file

@ -593,6 +593,7 @@ where
Ok(())
}
#[profiling::function]
pub fn render_session<F, R>(
node: Option<DrmNode>,
renderer: &mut R,
@ -637,6 +638,7 @@ where
}
}
#[profiling::function]
pub fn render_output_to_buffer(
state: &mut State,
session: &Session,
@ -767,6 +769,7 @@ pub fn render_output_to_buffer(
}
}
#[profiling::function]
pub fn render_workspace_to_buffer(
state: &mut State,
session: &Session,
@ -916,6 +919,7 @@ smithay::render_elements! {
CursorElement=cursor::CursorRenderElement<R>,
}
#[profiling::function]
pub fn render_window_to_buffer(
state: &mut State,
session: &Session,