mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
layout: Improve and expand category names for layout profiling (#37833)
This improves naming of layout categories and adds tracing for each layout phase. Testing: This just adds / adjusts profiling categories, so doesn't need tests. Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
afdd9778e5
commit
19b5e14851
4 changed files with 33 additions and 20 deletions
|
@ -45,6 +45,7 @@ pub struct BoxTree {
|
|||
}
|
||||
|
||||
impl BoxTree {
|
||||
#[servo_tracing::instrument(name = "Box Tree Construction", skip_all)]
|
||||
pub(crate) fn construct(context: &LayoutContext, root_element: ServoLayoutNode<'_>) -> Self {
|
||||
let boxes = construct_for_root_element(context, root_element);
|
||||
|
||||
|
@ -191,6 +192,7 @@ fn construct_for_root_element(
|
|||
}
|
||||
|
||||
impl BoxTree {
|
||||
#[servo_tracing::instrument(name = "Fragment Tree Construction", skip_all)]
|
||||
pub(crate) fn layout(
|
||||
&self,
|
||||
layout_context: &LayoutContext,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue