aboutsummaryrefslogtreecommitdiffstats
path: root/components/metrics
diff options
context:
space:
mode:
authorFernando Jiménez Moreno <ferjmoreno@gmail.com>2017-07-21 14:58:30 +0200
committerFernando Jiménez Moreno <ferjmoreno@gmail.com>2017-07-21 15:10:04 +0200
commit585d0e52aff86fd02e8a76b8f4ca380d48c18c23 (patch)
treefe1b3fa544f3ad061139a8e4ec1ea8dd10c9ad33 /components/metrics
parent06b409ad603688658815fd1a71a02fd03cd5094a (diff)
downloadservo-585d0e52aff86fd02e8a76b8f4ca380d48c18c23.tar.gz
servo-585d0e52aff86fd02e8a76b8f4ca380d48c18c23.zip
PWM tests
Diffstat (limited to 'components/metrics')
-rw-r--r--components/metrics/lib.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/components/metrics/lib.rs b/components/metrics/lib.rs
index 98773a1d205..0cbf703a1ec 100644
--- a/components/metrics/lib.rs
+++ b/components/metrics/lib.rs
@@ -110,4 +110,16 @@ impl PaintTimeMetrics {
}
}
}
+
+ pub fn get_navigation_start(&self) -> Option<f64> {
+ self.navigation_start
+ }
+
+ pub fn get_first_paint(&self) -> Option<f64> {
+ self.first_paint.get()
+ }
+
+ pub fn get_first_contentful_paint(&self) -> Option<f64> {
+ self.first_contentful_paint.get()
+ }
}