mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
Give the allocator to the tracer when necessary
This commit is contained in:
parent
6cf703387d
commit
83fb2949c3
2 changed files with 6 additions and 3 deletions
|
@ -35,8 +35,10 @@ fn setup(opt: &Opt) -> anyhow::Result<()> {
|
|||
|
||||
let file = std::fs::File::create(&trace_file)
|
||||
.with_context(|| format!("could not create trace file at '{}'", trace_file))?;
|
||||
// TODO kero: Pass the allocator stats to Trace here
|
||||
#[cfg(not(feature = "stats_alloc"))]
|
||||
let (mut trace, layer) = tracing_trace::Trace::new(file);
|
||||
#[cfg(feature = "stats_alloc")]
|
||||
let (mut trace, layer) = tracing_trace::Trace::with_stats_alloc(file, &ALLOC);
|
||||
|
||||
let subscriber = tracing_subscriber::registry()
|
||||
.with(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue