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

@ -45,6 +45,8 @@ impl<'t, 'u, 'i> WordPrefixDocids<'t, 'u, 'i> {
common_prefix_fst_words: &[&[String]],
del_prefix_fst_words: &HashSet<Vec<u8>>,
) -> Result<()> {
puffin::profile_function!();
// It is forbidden to keep a mutable reference into the database
// and write into it at the same time, therefore we write into another file.
let mut prefix_docids_sorter = create_sorter(