diff options
author | ddh <dianehosfelt@gmail.com> | 2017-10-02 14:52:39 +0100 |
---|---|---|
committer | ddh <dianehosfelt@gmail.com> | 2017-10-24 21:02:56 +0100 |
commit | 2ffbe5398970e54ad55d3e53b495ee6651b64f4c (patch) | |
tree | 4bd439757539df5afa8e58a9030a3a46c4098e0d /components/script/script_runtime.rs | |
parent | 347176df257978bdb1c413f632c9fc870de4ff76 (diff) | |
download | servo-2ffbe5398970e54ad55d3e53b495ee6651b64f4c.tar.gz servo-2ffbe5398970e54ad55d3e53b495ee6651b64f4c.zip |
added time to interactive metrics, refactored metrics to use traits
changed task macro to take pipeline info
Diffstat (limited to 'components/script/script_runtime.rs')
-rw-r--r-- | components/script/script_runtime.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/script_runtime.rs b/components/script/script_runtime.rs index 7d3e5e60e1c..57e1bbd0755 100644 --- a/components/script/script_runtime.rs +++ b/components/script/script_runtime.rs @@ -22,6 +22,7 @@ use js::jsapi::{JSObject, RuntimeOptionsRef, SetPreserveWrapperCallback, SetEnqu use js::panic::wrap_panic; use js::rust::Runtime as RustRuntime; use microtask::{EnqueuedPromiseCallback, Microtask}; +use msg::constellation_msg::PipelineId; use profile_traits::mem::{Report, ReportKind, ReportsChan}; use script_thread::trace_thread; use servo_config::opts; @@ -44,14 +45,14 @@ pub enum CommonScriptMsg { /// supplied channel. CollectReports(ReportsChan), /// Generic message that encapsulates event handling. - Task(ScriptThreadEventCategory, Box<TaskBox>), + Task(ScriptThreadEventCategory, Box<TaskBox>, Option<PipelineId>), } impl fmt::Debug for CommonScriptMsg { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { CommonScriptMsg::CollectReports(_) => write!(f, "CollectReports(...)"), - CommonScriptMsg::Task(ref category, ref task) => { + CommonScriptMsg::Task(ref category, ref task, _) => { f.debug_tuple("Task").field(category).field(task).finish() }, } |