mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Additional tracing for flex layout, inline layout, and fonts (#34392)
Signed-off-by: Delan Azabani <dazabani@igalia.com>
This commit is contained in:
parent
a4caa0efcb
commit
d65a2e9797
3 changed files with 62 additions and 6 deletions
|
@ -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>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue