diff options
author | Ms2ger <Ms2ger@gmail.com> | 2015-11-06 13:10:37 +0100 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2015-11-09 09:03:50 +0100 |
commit | ff0acccc061c0894e40bbda4b318bc7ab8615367 (patch) | |
tree | b2bcf9531dd3f296eafbb017c90570a76779b28c /components/profile/time.rs | |
parent | 3780fb7fe02ed66bd391421a0c5506b5635279dd (diff) | |
download | servo-ff0acccc061c0894e40bbda4b318bc7ab8615367.tar.gz servo-ff0acccc061c0894e40bbda4b318bc7ab8615367.zip |
Consolidate ProfilerMetadata and TimerMetadata.
There is no good reason to have the two types.
This also means that the result of LayoutTask::profiler_metadata no longer
borrows the LayoutTask, which I'll need later.
Diffstat (limited to 'components/profile/time.rs')
-rw-r--r-- | components/profile/time.rs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/components/profile/time.rs b/components/profile/time.rs index 21acdba8366..aa3fd79199a 100644 --- a/components/profile/time.rs +++ b/components/profile/time.rs @@ -8,6 +8,7 @@ use heartbeats; use ipc_channel::ipc::{self, IpcReceiver}; use profile_traits::energy::{energy_interval_ms, read_energy_uj}; use profile_traits::time::{ProfilerCategory, ProfilerChan, ProfilerMsg, TimerMetadata}; +use profile_traits::time::{TimerMetadataReflowType, TimerMetadataFrameType}; use std::borrow::ToOwned; use std::cmp::Ordering; use std::collections::BTreeMap; @@ -31,8 +32,14 @@ impl Formattable for Option<TimerMetadata> { } else { url }; - let incremental = if meta.incremental { " yes" } else { " no " }; - let iframe = if meta.iframe { " yes" } else { " no " }; + let incremental = match meta.incremental { + TimerMetadataReflowType::Incremental => " yes", + TimerMetadataReflowType::FirstReflow => " no ", + }; + let iframe = match meta.iframe { + TimerMetadataFrameType::RootWindow => " yes", + TimerMetadataFrameType::IFrame => " no ", + }; format!(" {:14} {:9} {:30}", incremental, iframe, url) }, None => |