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/layout/stack.rs | |
| parent | 2fbb14f712708188649181525813b3ac5a02e0fb (diff) | |
Add instrumentation (Part 1) (#761)
Diffstat (limited to 'library/src/layout/stack.rs')
| -rw-r--r-- | library/src/layout/stack.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/library/src/layout/stack.rs b/library/src/layout/stack.rs index b1f7f59d..80145567 100644 --- a/library/src/layout/stack.rs +++ b/library/src/layout/stack.rs @@ -38,6 +38,7 @@ pub struct StackElem { } impl Layout for StackElem { + #[tracing::instrument(name = "StackElem::layout", skip_all)] fn layout( &self, vt: &mut Vt, @@ -161,6 +162,7 @@ impl<'a> StackLayouter<'a> { } /// Add spacing along the spacing direction. + #[tracing::instrument(name = "StackLayouter::layout_spacing", skip_all)] fn layout_spacing(&mut self, spacing: Spacing) { match spacing { Spacing::Rel(v) => { @@ -184,6 +186,7 @@ impl<'a> StackLayouter<'a> { } /// Layout an arbitrary block. + #[tracing::instrument(name = "StackLayouter::layout_block", skip_all)] fn layout_block( &mut self, vt: &mut Vt, |
