diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-01-04 11:31:51 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-01-04 11:59:23 +0100 |
commit | 4d47817bae1a910c7abed44b0b7dd2bb344e12b7 (patch) | |
tree | d1684b53d5ed469576deefb960b4876cdb982d43 /components/layout/layout_task.rs | |
parent | d3e226239e9b78a923a9813621779c7c7e18314b (diff) | |
download | servo-4d47817bae1a910c7abed44b0b7dd2bb344e12b7.tar.gz servo-4d47817bae1a910c7abed44b0b7dd2bb344e12b7.zip |
Rename TimeProfilerCategory variants.
Diffstat (limited to 'components/layout/layout_task.rs')
-rw-r--r-- | components/layout/layout_task.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/components/layout/layout_task.rs b/components/layout/layout_task.rs index 72865373f3f..c9ca8a27a8d 100644 --- a/components/layout/layout_task.rs +++ b/components/layout/layout_task.rs @@ -56,7 +56,7 @@ use servo_util::opts; use servo_util::smallvec::{SmallVec, SmallVec1, VecLike}; use servo_util::task::spawn_named_with_send_on_failure; use servo_util::task_state; -use servo_util::time::{mod, ProfilerMetadata, TimeProfilerChan, TimerMetadataFrameType}; +use servo_util::time::{TimeProfilerCategory, ProfilerMetadata, TimeProfilerChan, TimerMetadataFrameType}; use servo_util::time::{TimerMetadataReflowType, profile}; use servo_util::workqueue::WorkQueue; use std::cell::Cell; @@ -398,7 +398,7 @@ impl LayoutTask { Box<LayoutRPC + Send>); }, Msg::Reflow(data) => { - profile(time::LayoutPerformCategory, + profile(TimeProfilerCategory::LayoutPerform, self.profiler_metadata(&*data), self.time_profiler_chan.clone(), || self.handle_reflow(&*data, possibly_locked_rw_data)); @@ -627,7 +627,7 @@ impl LayoutTask { shared_layout_context: &mut SharedLayoutContext, rw_data: &mut RWGuard<'a>) { let writing_mode = flow::base(&**layout_root).writing_mode; - profile(time::LayoutDispListBuildCategory, + profile(TimeProfilerCategory::LayoutDispListBuild, self.profiler_metadata(data), self.time_profiler_chan.clone(), || { @@ -771,7 +771,7 @@ impl LayoutTask { |mut flow| LayoutTask::reflow_all_nodes(flow.deref_mut())); } - let mut layout_root = profile(time::LayoutStyleRecalcCategory, + let mut layout_root = profile(TimeProfilerCategory::LayoutStyleRecalc, self.profiler_metadata(data), self.time_profiler_chan.clone(), || { @@ -789,7 +789,7 @@ impl LayoutTask { self.get_layout_root((*node).clone()) }); - profile(time::LayoutRestyleDamagePropagation, + profile(TimeProfilerCategory::LayoutRestyleDamagePropagation, self.profiler_metadata(data), self.time_profiler_chan.clone(), || { @@ -811,7 +811,7 @@ impl LayoutTask { // Perform the primary layout passes over the flow tree to compute the locations of all // the boxes. - profile(time::LayoutMainCategory, + profile(TimeProfilerCategory::LayoutMain, self.profiler_metadata(data), self.time_profiler_chan.clone(), || { |