diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-05-11 11:35:45 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-05-11 11:35:45 +0200 |
| commit | 998a3c44fd79eac92c375ec9e755288bc146a279 (patch) | |
| tree | 70825f2d68ed64c32b8b2551dcf0e545753f643c /library/src/layout/grid.rs | |
| parent | 2f0b5eeae09bd880e4552bb83e44d9cd32571c58 (diff) | |
Remove tracing from cheap functions
Turns out that having tracing enabled on some functions that get called a lot distorts the traces so that their parent stack frames look much more expensive than they actually are.
Diffstat (limited to 'library/src/layout/grid.rs')
| -rw-r--r-- | library/src/layout/grid.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/src/layout/grid.rs b/library/src/layout/grid.rs index acfee8a2..1e4bf40b 100644 --- a/library/src/layout/grid.rs +++ b/library/src/layout/grid.rs @@ -290,7 +290,6 @@ impl<'a, 'v> GridLayouter<'a, 'v> { } /// Determines the columns sizes and then layouts the grid row-by-row. - #[tracing::instrument(name = "grid layout", skip(self))] pub fn layout(mut self) -> SourceResult<GridLayout> { self.measure_columns()?; @@ -318,6 +317,7 @@ impl<'a, 'v> GridLayouter<'a, 'v> { } /// Determine all column sizes. + #[tracing::instrument(name = "GridLayouter::measure_columns", skip_all)] fn measure_columns(&mut self) -> SourceResult<()> { // Sum of sizes of resolved relative tracks. let mut rel = Abs::zero(); |
