diff options
author | Nicholas Nethercote <nnethercote@mozilla.com> | 2014-06-25 23:30:07 -0700 |
---|---|---|
committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2014-06-26 16:41:40 -0700 |
commit | 56dd5b943eb9652e160d6701c67eb1ff44eeee2a (patch) | |
tree | fb22c16e03bde292755d52b94579fd1f46b6b27e /src/components/main/servo.rs | |
parent | fad919ccf752099ee748d1b4f5dba41028800c8c (diff) | |
download | servo-56dd5b943eb9652e160d6701c67eb1ff44eeee2a.tar.gz servo-56dd5b943eb9652e160d6701c67eb1ff44eeee2a.zip |
Rename |Profiler| as |TimeProfiler|.
And likewise for |ProfilerChan|, |profiler_chan|, and so on. This
contrasts nicely with the newly added |MemoryProfiler|.
Diffstat (limited to 'src/components/main/servo.rs')
-rw-r--r-- | src/components/main/servo.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/main/servo.rs b/src/components/main/servo.rs index aae08a011d4..18588521a8b 100644 --- a/src/components/main/servo.rs +++ b/src/components/main/servo.rs @@ -63,7 +63,7 @@ use servo_net::image_cache_task::{ImageCacheTask, SyncImageCacheTask}; #[cfg(not(test))] use servo_net::resource_task::ResourceTask; #[cfg(not(test))] -use servo_util::time::Profiler; +use servo_util::time::TimeProfiler; #[cfg(not(test))] use servo_util::memory::MemoryProfiler; @@ -170,11 +170,11 @@ pub fn run(opts: opts::Opts) { let mut pool = green::SchedPool::new(pool_config); let (compositor_port, compositor_chan) = CompositorChan::new(); - let profiler_chan = Profiler::create(opts.profiler_period); + let time_profiler_chan = TimeProfiler::create(opts.time_profiler_period); let memory_profiler_chan = MemoryProfiler::create(opts.memory_profiler_period); let opts_clone = opts.clone(); - let profiler_chan_clone = profiler_chan.clone(); + let time_profiler_chan_clone = time_profiler_chan.clone(); let (result_chan, result_port) = channel(); pool.spawn(TaskOpts::new(), proc() { @@ -193,7 +193,7 @@ pub fn run(opts: opts::Opts) { opts, resource_task, image_cache_task, - profiler_chan_clone); + time_profiler_chan_clone); // Send the URL command to the constellation. for filename in opts.urls.iter() { @@ -220,7 +220,7 @@ pub fn run(opts: opts::Opts) { CompositorTask::create(opts, compositor_port, constellation_chan, - profiler_chan, + time_profiler_chan, memory_profiler_chan); pool.shutdown(); |