diff options
author | Delan Azabani <dazabani@igalia.com> | 2024-11-15 17:10:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-15 09:10:01 +0000 |
commit | aa7116c75d2f13f554ce4db162344aaea59e60b0 (patch) | |
tree | 6b23fa65221101ac202e0742dc749c255627beb1 /components/layout/parallel.rs | |
parent | 495cceb7de813f6f1936d77821e8cf04ca2857cd (diff) | |
download | servo-aa7116c75d2f13f554ce4db162344aaea59e60b0.tar.gz servo-aa7116c75d2f13f554ce4db162344aaea59e60b0.zip |
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>
Diffstat (limited to 'components/layout/parallel.rs')
-rw-r--r-- | components/layout/parallel.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/layout/parallel.rs b/components/layout/parallel.rs index 26d7d429a25..4b3f5c694c5 100644 --- a/components/layout/parallel.rs +++ b/components/layout/parallel.rs @@ -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, |