Additional tracing for flex layout, inline layout, and fonts (#34392)

Signed-off-by: Delan Azabani <dazabani@igalia.com>
This commit is contained in:
Delan Azabani 2024-11-27 10:44:06 +08:00 committed by GitHub
parent a4caa0efcb
commit d65a2e9797
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 62 additions and 6 deletions

View file

@ -61,6 +61,15 @@ static TEXT_SHAPING_PERFORMANCE_COUNTER: AtomicUsize = AtomicUsize::new(0);
// resources needed by the graphics layer to draw glyphs.
pub trait PlatformFontMethods: Sized {
#[cfg_attr(
feature = "tracing",
tracing::instrument(
name = "PlatformFontMethods::new_from_template",
skip_all,
fields(servo_profiling = true),
level = "trace",
)
)]
fn new_from_template(
template: FontTemplateRef,
pt_size: Option<Au>,