First iteration on exposing puffin profiling

This commit is contained in:
Kerollmops
2023-07-10 18:41:54 +02:00
parent 9daccdf7f0
commit eef95de30e
33 changed files with 210 additions and 17 deletions

View File

@ -42,6 +42,8 @@ impl<'t, 'u, 'i> WordsPrefixesFst<'t, 'u, 'i> {
#[logging_timer::time("WordsPrefixesFst::{}")]
pub fn execute(self) -> Result<()> {
puffin::profile_function!();
let words_fst = self.index.words_fst(self.wtxn)?;
let mut current_prefix = vec![SmallString32::new(); self.max_prefix_length];