aboutsummaryrefslogtreecommitdiffstats
path: root/components/metrics/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/metrics/lib.rs')
-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()
+ }
}