diff options
| author | Sébastien d'Herbais de Thun <sebastien.d.herbais@gmail.com> | 2023-04-23 14:33:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-23 14:33:56 +0200 |
| commit | 561ff979d574f496415c0499345d41da2e1f6e1e (patch) | |
| tree | 037479ac000bd87a1cb2149e5389b28f08d24051 /library/src/meta/context.rs | |
| parent | 2fbb14f712708188649181525813b3ac5a02e0fb (diff) | |
Add instrumentation (Part 1) (#761)
Diffstat (limited to 'library/src/meta/context.rs')
| -rw-r--r-- | library/src/meta/context.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/library/src/meta/context.rs b/library/src/meta/context.rs index 710347f4..7bc57e97 100644 --- a/library/src/meta/context.rs +++ b/library/src/meta/context.rs @@ -72,6 +72,7 @@ struct LocateElem { } impl Show for LocateElem { + #[tracing::instrument(name = "LocateElem::show", skip(self, vt))] fn show(&self, vt: &mut Vt, _: StyleChain) -> SourceResult<Content> { if !vt.introspector.init() { return Ok(Content::empty()); @@ -127,6 +128,7 @@ struct StyleElem { } impl Show for StyleElem { + #[tracing::instrument(name = "StyleElem::show", skip_all)] fn show(&self, vt: &mut Vt, styles: StyleChain) -> SourceResult<Content> { Ok(self.func().call_vt(vt, [styles.to_map().into()])?.display()) } @@ -204,6 +206,7 @@ struct LayoutElem { } impl Layout for LayoutElem { + #[tracing::instrument(name = "LayoutElem::layout", skip_all)] fn layout( &self, vt: &mut Vt, |
