Commit Graph

336 Commits

Author SHA1 Message Date
Jan-Erik Rediger
1f85ca4b91 Bug 1788040 - Update to Glean v51.2.0. r=chutten,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D156937
2022-09-13 12:57:58 +00:00
Jan-Erik Rediger
03c4ad04b1 Bug 1783754 - Update to Glean v51.1.0. r=TravisLong,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D154088
2022-08-09 15:58:51 +00:00
pmcmanis
d3aab220d9 Bug 1780621 test size limits of updated Memory Distribution Accumulate r=Dexter
Also adds a small guardrail consistent with the implementation in Timing Distribution

Differential Revision: https://phabricator.services.mozilla.com/D153384
2022-08-03 14:52:16 +00:00
Norisz Fay
78c2f016fe Backed out changeset 5fd037a32fc2 (bug 1780621) for causing xpcshell failures on test_GIFFT.js CLOSED TREE 2022-08-02 16:33:43 +03:00
pmcmanis
2c7b27502f Bug 1780621 test size limits of updated Memory Distribution Accumulate r=Dexter
Also adds a small guardrail consistent with the implementation in Timing Distribution

Differential Revision: https://phabricator.services.mozilla.com/D153384
2022-08-02 12:14:16 +00:00
Jan-Erik Rediger
85dcae1bb7 Bug 1781030 - Upgrade to Glean v51.0.1. r=perry.mcmanis,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D152626
2022-08-01 10:50:47 +00:00
Jan-Erik Rediger
84f999cd3c Bug 1781085 - Update to Glean v50.1.3 r=chutten,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D152770
2022-07-27 10:24:48 +00:00
criss
2d3106819f Backed out changeset 581d7209c242 (bug 1781085) for causing build bustages. CLOSED TREE 2022-07-27 12:19:52 +03:00
Jan-Erik Rediger
ba68651b23 Bug 1781085 - Update to Glean v50.1.3 r=chutten,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D152770
2022-07-27 08:58:11 +00:00
Jan-Erik Rediger
dfc4088e99 Bug 1771888 - Put labeled metrics into an arc to avoid cloning. r=chutten
This means we need that Arc in boolean, counter & string,
but we avoid cloning the internal metric. Glean already made that
optimization lately.

Note 1: The actual metric types use an Arc internally in glean-core,
so we're nesting Arcs here. I don't think that's problematic though.

Note 2: No measurements have been done whether this really changes much.
Also we probably do not have that many labeled metrics yet for it to
make a measurable difference to begin with.

Differential Revision: https://phabricator.services.mozilla.com/D152017
2022-07-21 15:17:16 +00:00
Travis Long
3248e25004 Bug 1772132 - Update Glean and remove cargo metadata replacement. r=janerik,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D151499
2022-07-14 13:11:13 +00:00
Norisz Fay
cb23b29e60 Backed out changeset ce93635100b6 (bug 1772132) for causing webrender build bustage CLOSED TREE 2022-07-13 22:08:19 +03:00
Travis Long
45b430b958 Bug 1772132 - Update Glean and remove cargo metadata replacement. r=janerik,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D151499
2022-07-13 18:00:35 +00:00
Bogdan Szekely
3f3ff21488 Backed out changeset 1ff9bb6e4a8c (bug 1772132) for causing build bustage. CLOSED TREE 2022-07-13 16:17:53 +03:00
Travis Long
464b4a3db3 Bug 1772132 - Update Glean and remove cargo metadata replacement. r=janerik,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D151499
2022-07-13 12:59:16 +00:00
smolnar
03f912e7ed Backed out changeset ab4790cd94eb (bug 1772132) for causing wrench bustage CLOSED TREE 2022-07-13 12:04:13 +03:00
Travis Long
458cd6f54c Bug 1772132 - Update Glean and remove cargo metadata replacement. r=janerik,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D151499
2022-07-13 08:43:41 +00:00
pmcmanis
6bde647b97 Bug 1766515 - Implemented new glean Boolean error handling behavior on Labeled Booleans collected in Glean, and updated tests r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D150493
2022-07-06 15:49:16 +00:00
Bogdan Szekely
b4ac86e146 Backed out changeset 4dd17a60cad0 (bug 1766515) for causing xpcshell failures on test_JOG.js 2022-06-28 12:48:36 +03:00
pmcmanis
022fc119e7 Bug 1766515 - Implemented new glean Boolean error handling behavior on Labeled Booleans collected in Glean, and updated tests r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D149569
2022-06-28 08:45:57 +00:00
Noemi Erli
856ade60d2 Backed out changeset 37a07f2d420d (bug 1766515) for causing failures in test_GIFFT.js CLOSED TREE 2022-06-22 18:31:00 +03:00
pmcmanis
55f95dbc31 Bug 1766515 - Implemented new glean Boolean error handling behavior on Labeled Booleans collected in Glean, and updated tests r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D149569
2022-06-22 13:41:18 +00:00
Chris H-C
5510ea4ae6 Bug 1698184 - Support runtime-registered metrics in FOG IPC r=janerik
I feel as though there's a refactor where both IPC and FFI can reuse the same
macros, but for now this is a fairly copy-pasta-heavy change.

Differential Revision: https://phabricator.services.mozilla.com/D144966
2022-06-21 20:34:55 +00:00
Chris H-C
e7f970d3b3 Bug 1698184 - Augment FOG's FFI to support runtime-defined metrics r=janerik
We go from one place where metrics can be (the static maps) to two
(we throw in the factory's dynamic maps (warehouses?))

(( Actually from two to three when you consider the submetric maps ))

Thanks to how we architected things, the necessary macro changes are nice and
small.

Differential Revision: https://phabricator.services.mozilla.com/D143049
2022-06-21 20:34:55 +00:00
Chris H-C
d0a181d9f3 Bug 1698184 - Build a factory for runtime-defined metrics r=janerik
Pieces include
* A script for collecting all the ids for metric _types_
* A template for generating the factory that can build each of those types
* mozbuild integration

Differential Revision: https://phabricator.services.mozilla.com/D143048
2022-06-21 20:34:54 +00:00
Chris H-C
bb292484a9 Bug 1698184 - Move submetrics to 2^25 to make room for dynamic metrics r=janerik
Previously we used the 27th bit to signal if a metric instance was actually a
labeled_* metric's "submetric". This bit is actually part of the metric type
part of the lower (upper?) 32 bits of the metric_entry_t, but that was okay
because builtin metrics all have their top 5 bits scrubbed.

itsFreeRealEstate.jpg

This can no longer work, though, since JOG will need to be able to have its
own submetrics that don't conflict _and_ will need to keep the type bits
around so we know what instances to build.

(( Yes, yes, I could've designed the system so that we didn't need to,
but this was the less complicated way. We can go down this route when we
provision the 34 Millionth metric and run out of space. ))

So that means taking two bits away from the id portion: one for runtime (we'll
give it 2^26) and one for submetric (2^25).

Differential Revision: https://phabricator.services.mozilla.com/D143044
2022-06-21 20:34:52 +00:00
Emilio Cobos Álvarez
f71e0c7024 Bug 1774489 - Fix fog event test APIs to not leak. r=chutten
This is also simpler.

Differential Revision: https://phabricator.services.mozilla.com/D149638
2022-06-17 15:58:18 +00:00
Jan-Erik Rediger
e447a2597f Bug 1773255 - Update to Glean v50.1.0 r=chutten,supply-chain-reviewers
Including glean_parser 6.1.1

Two important things in there:
* glean_parser: [data-review] Include extra keys' names and descriptions in data review template
* Glean: Derive `serde::{Deserialize, Serialize}` on `Lifetime` and `CommonMetricData`

Differential Revision: https://phabricator.services.mozilla.com/D149381
2022-06-15 15:39:33 +00:00
Jan-Erik Rediger
4ca6841988 Bug 1768834 - Switch to Glean with UniFFI integration r=glandium,chutten
Upgrades to Glean v50.0.1, which comes with a rewritten core and
UniFFI-powered bindings.
Glean has some API changes, so we swap it over to that. Mostly mechanical changes.
Also upgrades to inherent v1.0 in fog.
This matches what Glean uses internally and gets rid of one duplicated crate.

Also upgrades to glean-parser==6.0.1

One crate duplication now (change in `python/mozbuild/mozbuild/vendor/vendor_rust.py` required).
Some new crates now vendored.
These are transitive dependencies of Glean dependencies, all with valid
licenses and already used in other products (mobile).

Differential Revision: https://phabricator.services.mozilla.com/D146062
2022-06-07 12:37:20 +00:00
Chris H-C
a0c6f025d7 Bug 1767016 - Be a little more clear about when and how to edit metrics.rs r=Dexter DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D147430
2022-05-26 14:43:40 +00:00
Alessio Placitelli
ce5636eb29 Bug 1766980 - Implement the URL type in FOG. r=chutten
This adds both the core Rust implementation and the
code to enable the needed language bindings. This
additionally enables GIFFT on the URL type, mirroring
them to a string scalar.

Differential Revision: https://phabricator.services.mozilla.com/D145215
2022-05-02 16:05:55 +00:00
Chris H-C
ad3310802e Bug 1764549 - Update Glean SDK to v44.1.1 r=TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D143749
2022-04-14 20:35:08 +00:00
Jan-Erik Rediger
05d0f00624 Bug 1763602 - Update to Glean v44.1.0. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D143162
2022-04-11 08:25:00 +00:00
Bas Schouten
c4641507da Bug 1759863: Expose API for collecting time intervals directly into timing distribution metrics. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D142290
2022-03-31 20:17:03 +00:00
Cristian Tuns
52188369e8 Backed out 2 changesets (bug 1759863) for causing build bustages CLOSED TREE
Backed out changeset 45242f5e8a43 (bug 1759863)
Backed out changeset f49fc149b138 (bug 1759863)
2022-03-31 16:05:06 -04:00
Bas Schouten
d5c27c8b4d Bug 1759863: Expose API for collecting time intervals directly into timing distribution metrics. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D142290
2022-03-31 19:48:20 +00:00
criss
5ae547c9ea Backed out 2 changesets (bug 1759863) for causing build bustages. CLOSED TREE
Backed out changeset cf0fcf2f2bca (bug 1759863)
Backed out changeset 3b3f1eda4f7d (bug 1759863)
2022-03-31 20:52:29 +03:00
Bas Schouten
4f2209de60 Bug 1759863: Expose API for collecting time intervals directly into timing distribution metrics. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D142290
2022-03-31 17:31:34 +00:00
Bas Schouten
123f08ad83 Bug 1758795: Also call GIFFT code when calling members on TimingDistributionMetric::Child. r=chutten
Depends on D140681

Differential Revision: https://phabricator.services.mozilla.com/D140691
2022-03-21 21:19:26 +00:00
Chris H-C
09fc7e640d Bug 1751448 Expand one metric type's GIFFT to Rust r=janerik,bas
Differential Revision: https://phabricator.services.mozilla.com/D136664
2022-02-17 21:38:44 +00:00
Norisz Fay
816d648c8f Backed out changeset eb8d59a24869 (bug 1751448) for causing rusttest build bustages CLOSED TREE 2022-02-17 20:45:10 +02:00
Chris H-C
5fd71cbb45 Bug 1751448 Expand one metric type's GIFFT to Rust r=janerik,bas
Differential Revision: https://phabricator.services.mozilla.com/D136664
2022-02-17 15:12:20 +00:00
Butkovits Atila
bc7d4928bc Backed out changeset bd49571119a5 (bug 1751448) for causing build bustages. CLOSED TREE 2022-02-16 22:50:37 +02:00
Chris H-C
04b6ecae50 Bug 1751448 Expand one metric type's GIFFT to Rust r=janerik,bas
Differential Revision: https://phabricator.services.mozilla.com/D136664
2022-02-16 19:30:14 +00:00
Jan-Erik Rediger
eb58b01633 Bug 1754474 - Update to Glean 44.0.0 and glean_parser 5.0.1. r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D138446
2022-02-15 13:35:07 +00:00
Marian-Vasile Laza
74eb39b9b5 Backed out 4 changesets (bug 1754474) for causing bc test failures. CLOSED TREE
Backed out changeset c6dd8b681aca (bug 1754474)
Backed out changeset 596955256cc6 (bug 1754474)
Backed out changeset fc692b3c27a2 (bug 1754474)
Backed out changeset 59eb7951a5eb (bug 1754474)
2022-02-11 17:30:03 +02:00
Jan-Erik Rediger
bff6764c22 Bug 1754474 - Update to Glean 44.0.0 and glean_parser 5.0.1. r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D138446
2022-02-11 14:27:38 +00:00
Alexandre Lissy
9d04c5b076 Bug 1745173 - Add FOG to UtilityProcess r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D133633
2022-01-31 20:46:49 +00:00
Alexandre Lissy
ec2ff1ac12 Bug 1751177 - Revert glean workaround for HashMap r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D137317
2022-01-31 20:46:48 +00:00
Andi-Bogdan Postelnicu
0eb116ce1e Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio,webdriver-reviewers
Updated with rustfmt 1.4.38-stable (db9d1b2 2022-01-20)

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D137148
2022-01-31 17:00:21 +00:00