Add tracing to milli

This commit is contained in:
Louis Dureuil 2024-01-23 09:42:48 +01:00
parent 02e6c8a440
commit 5d7061682e
No known key found for this signature in database
24 changed files with 150 additions and 29 deletions

View file

@ -14,6 +14,12 @@ impl<'t, 'i> ClearDocuments<'t, 'i> {
ClearDocuments { wtxn, index }
}
#[tracing::instrument(
level = "trace",
skip(self),
target = "indexing::documents",
name = "clear_documents"
)]
pub fn execute(self) -> Result<u64> {
puffin::profile_function!();