From b7458c14881530c73129f0e1dcbc553101964302 Mon Sep 17 00:00:00 2001 From: Chris H-C Date: Wed, 22 Jan 2025 12:11:35 -0500 Subject: [PATCH] bug 1941601 - Document timing_distribution RAII [doc only] --- .../reference/metrics/timing_distribution.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/docs/user/reference/metrics/timing_distribution.md b/docs/user/reference/metrics/timing_distribution.md index d6522b9aa2..299c666738 100644 --- a/docs/user/reference/metrics/timing_distribution.md +++ b/docs/user/reference/metrics/timing_distribution.md @@ -482,7 +482,24 @@ with metrics.pages.page_load.measure():
-
+
+ +**C++** + +```c++ +#include "mozilla/glean/DomMetrics.h" + +{ // Scope for RAII + auto timer = mozilla::glean::pages::page_load.Measure(); + // load the page +} +``` + +**JavaScript** + +*Not currently implemented.* + +
{{#include ../../../shared/tab_footer.md}}