Skip to content

Commit

Permalink
Actually enter the spans
Browse files Browse the repository at this point in the history
  • Loading branch information
DJMcNab committed Jan 9, 2025
1 parent 897dea6 commit 8f2534f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vello_encoding/src/glyph_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,13 @@ impl GlyphCache {
});
}
pub(crate) fn resolve_in_parallel(&mut self) {
tracing::trace_span!("Resolving glyph outlines", count = self.unresolved.len());
let _span = tracing::info_span!("Resolving glyph outlines", count = self.unresolved.len())
.entered();
let result = self
.unresolved
.par_iter()
.map_init(HintCache::default, |hint_cache, (coords, glyph, font)| {
tracing::trace_span!("Resolving single glyph");
let _span = tracing::trace_span!("Resolving single glyph").entered();
(
resolve_single_glyph(hint_cache, coords, glyph, font),
coords,
Expand Down

0 comments on commit 8f2534f

Please sign in to comment.