From 0f66205cc284f1ec2d62e5c322a1f5bda83fd5ad Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 18 Jul 2025 18:42:18 +0200 Subject: [PATCH] A few extra timing annotations --- crates/typst-realize/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/typst-realize/src/lib.rs b/crates/typst-realize/src/lib.rs index b7a21e789..ea70d5ce1 100644 --- a/crates/typst-realize/src/lib.rs +++ b/crates/typst-realize/src/lib.rs @@ -338,6 +338,7 @@ fn visit_kind_rules<'a>( /// Tries to apply show rules to or prepare content. Returns `true` if the /// element was handled. +#[typst_macros::time(name = "visit show rules")] fn visit_show_rules<'a>( s: &mut State<'a, '_, '_, '_>, content: &'a Content, @@ -422,6 +423,7 @@ fn visit_show_rules<'a>( /// Inspects an element and the current styles and determines how to proceed /// with the styling. +#[typst_macros::time(name = "verdict")] fn verdict<'a>( engine: &mut Engine, elem: &'a Content, @@ -521,6 +523,7 @@ fn locatable(elem: &Content) -> bool { } /// This is only executed the first time an element is visited. +#[typst_macros::time(name = "prepare")] fn prepare( engine: &mut Engine, locator: &mut SplitLocator,