mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +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
|
@ -66,7 +66,7 @@ pub enum ProfilerCategory {
|
|||
Compositing = 0x00,
|
||||
|
||||
/// The script thread is doing layout work.
|
||||
LayoutPerform = 0x10,
|
||||
Layout = 0x10,
|
||||
|
||||
ImageSaving = 0x51,
|
||||
ScriptAttachLayout = 0x60,
|
||||
|
@ -126,7 +126,7 @@ impl ProfilerCategory {
|
|||
pub const fn variant_name(&self) -> &'static str {
|
||||
match self {
|
||||
ProfilerCategory::Compositing => "Compositing",
|
||||
ProfilerCategory::LayoutPerform => "LayoutPerform",
|
||||
ProfilerCategory::Layout => "Layout",
|
||||
ProfilerCategory::ImageSaving => "ImageSaving",
|
||||
ProfilerCategory::ScriptAttachLayout => "ScriptAttachLayout",
|
||||
ProfilerCategory::ScriptConstellationMsg => "ScriptConstellationMsg",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue