mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 03:47:02 +02:00
Expose the call trace in the batch stats
This commit is contained in:
parent
e9add14189
commit
3ff1de0a21
6 changed files with 10 additions and 6 deletions
|
@ -29,7 +29,7 @@ page_size = "0.6.0"
|
|||
rayon = "1.10.0"
|
||||
roaring = { version = "0.10.10", features = ["serde"] }
|
||||
serde = { version = "1.0.217", features = ["derive"] }
|
||||
serde_json = { version = "1.0.135", features = ["preserve_order"] }
|
||||
serde_json = { version = "1.0.138", features = ["preserve_order"] }
|
||||
synchronoise = "1.0.1"
|
||||
tempfile = "3.15.0"
|
||||
thiserror = "2.0.9"
|
||||
|
|
|
@ -339,7 +339,9 @@ impl IndexScheduler {
|
|||
|
||||
// We must re-add the canceled task so they're part of the same batch.
|
||||
ids |= canceled;
|
||||
eprintln!("{:#?}", progress.accumulated_durations());
|
||||
let durations = progress.accumulated_durations();
|
||||
processing_batch.stats.call_trace =
|
||||
durations.into_iter().map(|(k, v)| (k, v.into())).collect();
|
||||
self.queue.write_batch(&mut wtxn, processing_batch, &ids)?;
|
||||
|
||||
#[cfg(test)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue