mirror of
https://github.com/servo/servo.git
synced 2025-08-01 19:50:30 +01:00
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:
parent
495cceb7de
commit
aa7116c75d
16 changed files with 279 additions and 82 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue