Implement the "rate" metric type in FOG
Categories
(Toolkit :: Telemetry, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox92 | --- | fixed |
People
(Reporter: chutten, Assigned: chutten)
References
Details
(Whiteboard: [telemetry:fog:m?])
Attachments
(7 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
42 bytes,
text/x-github-pull-request
|
Details | Review |
Should just have to follow the steps in the docs for adding a new metric type to FOG. If not, updating the docs is now part of this bug.
Boils down to:
- Generate RateMetric, DenominatorMetric, and NumeratorMetric instances in Rust, C++, and JS templates.
- Implement those three types in those three languages
- All of these metrics are IPC-supporting, so be sure to add support
- Document the C++ and JS APIs in The Book
- Tests, tests, tests
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
Assignee | ||
Comment 2•3 years ago
|
||
Depends on D119784
Assignee | ||
Comment 3•3 years ago
|
||
Depends on D119785
Assignee | ||
Comment 4•3 years ago
|
||
Depends on D119786
Assignee | ||
Comment 5•3 years ago
|
||
Depends on D119787
Comment 7•3 years ago
•
|
||
Backed out for causing build bustages on GleanJSMetricsLookup.h.
Backout link: https://hg.mozilla.org/integration/autoland/rev/6d266a43f44537899d614915deaf05c2bca483b9
Failure log: https://treeherder.mozilla.org/logviewer?job_id=345210684&repo=autoland&lineNumber=54143
Assignee | ||
Comment 8•3 years ago
|
||
Without these annotations the literals will be assumed to be int
so as soon
as there's a literal that cannot be represented as such it'll warn.
And CI builds with warnings as errors.
metric_entry_t
is uint64_t
which is unsigned long long int
which is ull
category_entry_t
is uint32_t
which is unsigned long int
which is ul
Depends on D119788
Assignee | ||
Updated•3 years ago
|
Comment 9•3 years ago
|
||
Comment 10•3 years ago
|
||
Comment 11•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/900dae58363c
https://hg.mozilla.org/mozilla-central/rev/5f7e82456e24
https://hg.mozilla.org/mozilla-central/rev/15b51f5e1e48
https://hg.mozilla.org/mozilla-central/rev/17ecd7307d1e
https://hg.mozilla.org/mozilla-central/rev/aee57341a14a
https://hg.mozilla.org/mozilla-central/rev/628fd187bba9
Description
•