Closed Bug 1672706 Opened 5 years ago Closed 5 years ago

Figure out how IPC replays are applied to the corresponding metrics

Categories

(Toolkit :: Telemetry, task, P1)

task

Tracking

()

RESOLVED FIXED
84 Branch
Tracking Status
firefox84 --- fixed

People

(Reporter: janerik, Assigned: janerik)

References

Details

Attachments

(15 files, 1 obsolete file)

47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review

Right now FOG metrics in child processes store stuff in the IPC buffer.
The main process IPC receiver deserializes it and then ... displays it and that's it.

We need to figure out how to apply the recordings to the existing metrics.

Not all types have corresponding C++ implementations (for the C++ and JS API) yet.
To avoid too much work right now we skip auto-generating any code for
these types for now until we do have them.

This now ensures we can:

  1. Look up a metric by its (numeric) ID again (which is cheaper than
    carrying around strings.
  2. Replay counter increments coming in from the IPC buffer

Depends on D95007

This moves the tests to allow for test-only functionality.
This will allow to more easily test IPC behavior in pure Rust.

Depends on D95008

Attachment #9184285 - Attachment description: Bug 1672706 - Store the metric ID in a boolean metric. r?chutten! → Bug 1672706 - Take the metric ID for a boolean metric. r?chutten!
Attachment #9184287 - Attachment description: Bug 1672706 - Store the metric ID in a string metric. r?chutten! → Bug 1672706 - Take the metric ID for a string metric. r?chutten!
Attachment #9184288 - Attachment description: Bug 1672706 - Store the metric ID in a timespan metric. r?chutten! → Bug 1672706 - Take the metric ID for a timespan metric. r?chutten!
Attachment #9184290 - Attachment is obsolete: true
Pushed by jrediger@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4c6cd4b1cf44 Stop unimplemented metric types from breaking the build. r=chutten https://hg.mozilla.org/integration/autoland/rev/02261b74f887 Turn the metric ID into an opaque type around the integer representation. r=chutten https://hg.mozilla.org/integration/autoland/rev/f66355a21630 Store metric ID in counter & replay counter metrics from IPC. r=chutten https://hg.mozilla.org/integration/autoland/rev/025d1f7457ec Take the metric ID for a boolean metric. r=chutten https://hg.mozilla.org/integration/autoland/rev/8f4d4480020b Take the metric ID for a datetime metric. r=chutten https://hg.mozilla.org/integration/autoland/rev/546625e61b06 Take the metric ID for a string metric. r=chutten https://hg.mozilla.org/integration/autoland/rev/a7a415438ca7 Take the metric ID for a timespan metric. r=chutten https://hg.mozilla.org/integration/autoland/rev/c5514bf0a84c Store the metric ID in a memory distribution metric. r=chutten https://hg.mozilla.org/integration/autoland/rev/48a6bef980ae Store the metric ID in a timing distribution metric. r=chutten https://hg.mozilla.org/integration/autoland/rev/cbb24d0d69af Store the metric ID in a string list metric. r=chutten https://hg.mozilla.org/integration/autoland/rev/2d89bad6e074 Wait for Glean to initialize before submitting a ping in the test. r=chutten https://hg.mozilla.org/integration/autoland/rev/01a91886058b Store the metric ID in an event metric. r=chutten https://hg.mozilla.org/integration/autoland/rev/37c0ff672a45 Take the metric ID for a UUID metric r=chutten https://hg.mozilla.org/integration/autoland/rev/bb84538de3fd Receive and pass on the metric ID for labeled metrics. r=chutten https://hg.mozilla.org/integration/autoland/rev/829ee953051e Document when and how metric types need to store the metric ID. r=chutten
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: