diff options
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, |