Plumb time profiler output into tracing (#34238)

* Plumb time profiler output into tracing

Signed-off-by: Delan Azabani <dazabani@igalia.com>

* Enter the span tightly around the callback

Signed-off-by: Delan Azabani <dazabani@igalia.com>

* Use `info_span!()` shorthand

Signed-off-by: Delan Azabani <dazabani@igalia.com>

---------

Signed-off-by: Delan Azabani <dazabani@igalia.com>
This commit is contained in:
Delan Azabani 2024-11-15 17:10:01 +08:00 committed by GitHub
parent 495cceb7de
commit aa7116c75d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 279 additions and 82 deletions

View file

@ -11,7 +11,8 @@
use std::sync::atomic::{AtomicIsize, Ordering};
use std::{mem, ptr};
use profile_traits::time::{self, profile, TimerMetadata};
use profile_traits::time::{self, TimerMetadata};
use profile_traits::time_profile;
use servo_config::opts;
use smallvec::SmallVec;
@ -229,7 +230,7 @@ pub fn reflow(
queue.install(move || {
rayon::scope_fifo(move |scope| {
profile(
time_profile!(
time::ProfilerCategory::LayoutParallelWarmup,
profiler_metadata,
time_profiler_chan,