From 5f4fc6c95569b5b3c7aa81ffee3eea02d0100095 Mon Sep 17 00:00:00 2001 From: ManyTheFish Date: Thu, 11 Jan 2024 09:44:16 +0100 Subject: [PATCH] Add timer logs --- milli/src/search/new/bucket_sort.rs | 1 + milli/src/search/new/mod.rs | 2 ++ milli/src/search/new/query_term/parse_query.rs | 1 + 3 files changed, 4 insertions(+) diff --git a/milli/src/search/new/bucket_sort.rs b/milli/src/search/new/bucket_sort.rs index b46f6124f..b439b87ec 100644 --- a/milli/src/search/new/bucket_sort.rs +++ b/milli/src/search/new/bucket_sort.rs @@ -15,6 +15,7 @@ pub struct BucketSortOutput { // TODO: would probably be good to regroup some of these inside of a struct? #[allow(clippy::too_many_arguments)] +#[logging_timer::time] pub fn bucket_sort<'ctx, Q: RankingRuleQueryTrait>( ctx: &mut SearchContext<'ctx>, mut ranking_rules: Vec>, diff --git a/milli/src/search/new/mod.rs b/milli/src/search/new/mod.rs index 405b9747d..7b3b1d5b2 100644 --- a/milli/src/search/new/mod.rs +++ b/milli/src/search/new/mod.rs @@ -191,6 +191,7 @@ fn resolve_maximally_reduced_query_graph( Ok(docids) } +#[logging_timer::time] fn resolve_universe( ctx: &mut SearchContext, initial_universe: &RoaringBitmap, @@ -556,6 +557,7 @@ pub fn execute_vector_search( } #[allow(clippy::too_many_arguments)] +#[logging_timer::time] pub fn execute_search( ctx: &mut SearchContext, query: Option<&str>, diff --git a/milli/src/search/new/query_term/parse_query.rs b/milli/src/search/new/query_term/parse_query.rs index 64fe07a31..865075d97 100644 --- a/milli/src/search/new/query_term/parse_query.rs +++ b/milli/src/search/new/query_term/parse_query.rs @@ -5,6 +5,7 @@ use super::*; use crate::{Result, SearchContext, MAX_WORD_LENGTH}; /// Convert the tokenised search query into a list of located query terms. +#[logging_timer::time] pub fn located_query_terms_from_tokens( ctx: &mut SearchContext, query: NormalizedTokenIter,