diff options
author | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2017-07-21 14:58:30 +0200 |
---|---|---|
committer | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2017-07-21 15:10:04 +0200 |
commit | 585d0e52aff86fd02e8a76b8f4ca380d48c18c23 (patch) | |
tree | fe1b3fa544f3ad061139a8e4ec1ea8dd10c9ad33 /components/metrics | |
parent | 06b409ad603688658815fd1a71a02fd03cd5094a (diff) | |
download | servo-585d0e52aff86fd02e8a76b8f4ca380d48c18c23.tar.gz servo-585d0e52aff86fd02e8a76b8f4ca380d48c18c23.zip |
PWM tests
Diffstat (limited to 'components/metrics')
-rw-r--r-- | components/metrics/lib.rs | 12 |
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() + } } |