Skip to content

Commit

Permalink
bug 1941601 - Document timing_distribution RAII [doc only]
Browse files Browse the repository at this point in the history
  • Loading branch information
chutten committed Jan 22, 2025
1 parent da10029 commit b7458c1
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion docs/user/reference/metrics/timing_distribution.md
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,24 @@ with metrics.pages.page_load.measure():
</div>
<div data-lang="Rust" class="tab"></div>
<div data-lang="JavaScript" class="tab"></div>
<div data-lang="Firefox Desktop" class="tab"></div>
<div data-lang="Firefox Desktop" class="tab">

**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.*

</div>

{{#include ../../../shared/tab_footer.md}}

Expand Down

0 comments on commit b7458c1

Please sign in to comment.