aboutsummaryrefslogtreecommitdiffstats
path: root/components/metrics/lib.rs
diff options
context:
space:
mode:
authorddh <dianehosfelt@gmail.com>2018-04-11 21:29:03 +0100
committerddh <dianehosfelt@gmail.com>2018-04-11 21:29:03 +0100
commite5a009ee981d90388f9d59a6a8ddc4910932397a (patch)
tree7f4352a1a988f7d522522ac34c6ff87c589bba56 /components/metrics/lib.rs
parent7462eda675e2b19b3890acfaa4ac4f3dd2606bb0 (diff)
downloadservo-e5a009ee981d90388f9d59a6a8ddc4910932397a.tar.gz
servo-e5a009ee981d90388f9d59a6a8ddc4910932397a.zip
added spec comments
Diffstat (limited to 'components/metrics/lib.rs')
-rw-r--r--components/metrics/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/metrics/lib.rs b/components/metrics/lib.rs
index 59657738e57..1a17f75ca93 100644
--- a/components/metrics/lib.rs
+++ b/components/metrics/lib.rs
@@ -102,6 +102,7 @@ fn set_metric<U: ProgressiveWebMetric>(
}
+// spec: https://github.com/WICG/time-to-interactive
// https://github.com/GoogleChrome/lighthouse/issues/27
// we can look at three different metrics here:
// navigation start -> visually ready (dom content loaded)
@@ -259,6 +260,7 @@ impl ProgressiveWebMetric for InteractiveMetrics {
}
}
+// https://w3c.github.io/paint-timing/
pub struct PaintTimeMetrics {
pending_metrics: RefCell<HashMap<Epoch, (Option<TimerMetadata>, bool)>>,
navigation_start: Option<u64>,