fune/toolkit/components/glean/build_scripts/glean_parser_ext
Chris H-C 280af19463 Bug 1688281 - Add IPC support to FOG Labeled Counters r=janerik
Since the submetric deals with IPCPayload, the submetric needs to know its
label. We could add that to CounterMetric::Child, but adding an optional label
to the child variant of CounterMetric looked strange.

So instead, I introduce the Labeled*Metric types.
Well, LabeledStringMetric and LabeledBooleanMetric are just re-exports.
But LabeledCounterMetric knows its label in non-parent processes.
And in parent processes it just acts like a normal CounterMetric, thanks to the
metric traits.

To figure out how to handle all these types it encouraged me to remove lambdas
from the MLA FFI and solve it with hygienic identifier capture instead. Bonus.

Here's hoping I don't regret this additional level of abstraction later.

Differential Revision: https://phabricator.services.mozilla.com/D107667
2021-03-10 17:51:30 +00:00
..
templates Bug 1688281 - Add IPC support to FOG Labeled Counters r=janerik 2021-03-10 17:51:30 +00:00
cpp.py Bug 1675277 - Support FOG Labeled Metrics in C++ and JS r=janerik 2021-02-02 16:46:40 +00:00
js.py Bug 1675277 - Support FOG Labeled Metrics in C++ and JS r=janerik 2021-02-02 16:46:40 +00:00
run_glean_parser.py
rust.py Bug 1688281 - Add IPC support to FOG Labeled Counters r=janerik 2021-03-10 17:51:30 +00:00
string_table.py
util.py Bug 1675277 - Remove is_implemented_type. All types implemented r=janerik 2021-02-02 16:34:39 +00:00