mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
layout: Add instrumentation for display_list
(#34128)
* Add instrumentation for display_list Signed-off-by: atbrakhi <atbrakhi@igalia.com> * review update Signed-off-by: atbrakhi <atbrakhi@igalia.com> * review fix Signed-off-by: atbrakhi <atbrakhi@igalia.com> --------- Signed-off-by: atbrakhi <atbrakhi@igalia.com>
This commit is contained in:
parent
6451767428
commit
85a9ca7cb6
3 changed files with 20 additions and 0 deletions
|
@ -181,6 +181,10 @@ impl DisplayList {
|
|||
fragment_tree: &FragmentTree,
|
||||
root_stacking_context: &StackingContext,
|
||||
) -> (FnvHashMap<BrowsingContextId, Size2D<f32, CSSPixel>>, bool) {
|
||||
#[cfg(feature = "tracing")]
|
||||
let span = tracing::span!(tracing::Level::TRACE, "display_list::build");
|
||||
#[cfg(feature = "tracing")]
|
||||
let _enter = span.enter();
|
||||
let mut builder = DisplayListBuilder {
|
||||
current_scroll_node_id: self.compositor_info.root_reference_frame_id,
|
||||
current_reference_frame_scroll_node_id: self.compositor_info.root_reference_frame_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue