Commit Graph

307 Commits

Author SHA1 Message Date
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
Mike Hommey
84b48514ad Bug 1751331 - Use the mozbuild crate in glean. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D136564
2022-01-25 21:29:52 +00:00
criss
258819f2ee Backed out 2 changesets (bug 1751331) for causing multiple failures. CLOSED TREE
Backed out changeset c4081656bc53 (bug 1751331)
Backed out changeset 27df9b0ccfb1 (bug 1751331)
2022-01-25 11:41:52 +02:00
Mike Hommey
f559c93ecd Bug 1751331 - Use the mozbuild crate in glean. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D136564
2022-01-25 09:03:04 +00:00
Florian Quèze
02b789706d Bug 1745511 - Expand FOG IPC to GMP process, r=bryce,chutten,media-playback-reviewers,alwu.
Differential Revision: https://phabricator.services.mozilla.com/D133550
2022-01-19 13:31:17 +00:00
Cristian Tuns
09099c11ef Backed out 2 changesets (bug 1745511) for causing mochitest failures on GeckoChildProcessHost.cpp CLOSED TREE
Backed out changeset 620e4b9d8b61 (bug 1745511)
Backed out changeset 0fadea77038a (bug 1745511)
2022-01-19 07:24:42 -05:00
Florian Quèze
c1505dc115 Bug 1745511 - Expand FOG IPC to GMP process, r=bryce,chutten,media-playback-reviewers,alwu.
Differential Revision: https://phabricator.services.mozilla.com/D133550
2022-01-18 22:24:10 +00:00
Jan-Erik Rediger
4bbff140fb Bug 1750544 - Upgrade to Glean v43.0.2. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D136138
2022-01-17 16:26:33 +00:00
Alexandru Michis
6b0888bb3b Backed out changeset 19b1136a92ec (bug 1745511) for causing mochitest failures in GMPServiceParent.cpp
CLOSED TREE
2022-01-13 18:49:34 +02:00
Florian Quèze
8fb191e021 Bug 1745511 - Expand FOG IPC to GMP process, r=bryce,chutten.
Differential Revision: https://phabricator.services.mozilla.com/D133550
2022-01-13 13:44:22 +00:00
Jan-Erik Rediger
ccb8ab9de0 Bug 1746254 - Use simple default hash state to avoid random seeding r=chutten,padenot
This replaces the default-used `RandomState`[1] on the hashmaps used in
FOG's IPC with a simple wrapper around `DefaultHasher`.

`RandomState` uses `DefaultHasher` internally, which at the moment of
this commit, uses `SipHasher13` internally.
Our `HashState` does the same, but with default keys of `(0, 0)`
(whereas `RandomState` uses some random keys).

This will result in the same hashes used for the same values in
different hashmaps.
But this should be fine for the use here:
The key for all those hash maps is a `MetricId`, which is a simple `u32`.
It's already a unique identifier generated from defined metrics and not
user-manipulated.
Therefore we shouldn't need to worry about HashDos-resistance.

[1]: https://doc.rust-lang.org/std/collections/hash_map/struct.RandomState.html

Differential Revision: https://phabricator.services.mozilla.com/D135208
2022-01-12 10:10:30 +00:00
Nika Layzell
f01bb10add Bug 1748718 - Part 3: Remove now-unnecessary xpidl constant casts, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D135166
2022-01-07 20:35:15 +00:00
Nika Layzell
921726892b Bug 1748718 - Part 2: Use the specified type for rust xpidl constants, r=emilio
Previously all xpidl constants were specified as `i64` which means they require
casts before being passed to any xpcom methods. The lack of typing was not an
issue in c++ due to implicit casts from enums to integer types, but using the
correct type is much more valuable in Rust.

Differential Revision: https://phabricator.services.mozilla.com/D135165
2022-01-07 20:35:15 +00:00
Florian Quèze
52ec666a9b Bug 1745444 - Expand FOG IPC to Socket process, to collect CPU time used there, r=chutten,necko-reviewers,valentin.
Differential Revision: https://phabricator.services.mozilla.com/D133491
2021-12-15 22:18:32 +00:00
Narcis Beleuzu
a8e91af26f Backed out 4 changesets (bug 1745444) for GTest failures on IHistory.Test . CLOSED TREE
Backed out changeset b3a2dc754e16 (bug 1745444)
Backed out changeset 7b9d52dff930 (bug 1745444)
Backed out changeset 15d9a79cc305 (bug 1745444)
Backed out changeset 497572ee54af (bug 1745444)
2021-12-15 20:50:24 +02:00
Florian Quèze
6471c9335c Bug 1745444 - Expand FOG IPC to Socket process, to collect CPU time used there, r=chutten,necko-reviewers,valentin.
Differential Revision: https://phabricator.services.mozilla.com/D133491
2021-12-15 16:27:56 +00:00
Chris H-C
7a5557d320 Bug 1745660 - Flush FOG IPC every 100k samples r=TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D133664
2021-12-13 20:18:57 +00:00
Jan-Erik Rediger
2d1dbd7fb9 Bug 1744674 - Update to Glean v42.3.0 & glean_parser v4.3.1 r=chutten
Also updates the docs on how to update the glean_parser in-tree.
Also adds a `no_lint` exception to test pings to avoid breaking the
build.

Differential Revision: https://phabricator.services.mozilla.com/D133077
2021-12-13 11:24:50 +00:00
Narcis Beleuzu
d5f770f02c Backed out changeset 7ca282be411f (bug 1744674) for python failures on test_site_compatibility.py. CLOSED TREE 2021-12-11 01:08:45 +02:00
Florian Queze
3d358fc2aa Bug 1744162 - Expand FOG IPC to RDD process, to collect CPU and GPU time used there, r=chutten,jrmuizel.
Differential Revision: https://phabricator.services.mozilla.com/D132749
2021-12-10 12:20:10 +00:00
Jan-Erik Rediger
f7e7766bdb Bug 1744674 - Update to Glean v42.3.0 & glean_parser v4.3.1 r=chutten
Also updates the docs on how to update the glean_parser in-tree.
Also adds a `no_lint` exception to test pings to avoid breaking the
build.

Differential Revision: https://phabricator.services.mozilla.com/D133077
2021-12-09 09:30:20 +00:00
Chris H-C
1f48010242 Bug 1729026 - Add support for GPU-process Glean metrics via FOG r=Dexter,nical
Differential Revision: https://phabricator.services.mozilla.com/D124840
2021-12-01 14:35:08 +00:00
Jan-Erik Rediger
067634f6a6 Bug 1736239 - Handle time going backwards gracefully. r=chutten
Time's hard and it will inevitably go backwards at some point.
We should not panic, instead handle it gracefully.
For now we just don't record that value. In the future we should
properly record an error in Glean.

Differential Revision: https://phabricator.services.mozilla.com/D129495
2021-10-26 14:52:32 +00:00
Chris H-C
c09e695bae Bug 1735628 - Expose Glean Experiment Annotation Test APIs in FOG r=TravisLong
Depends on D128928

Differential Revision: https://phabricator.services.mozilla.com/D128929
2021-10-19 20:32:39 +00:00
Chris H-C
4c5b88c601 Bug 1735628 - Update Glean to v42.1.0 r=TravisLong
Depends on D128927

Differential Revision: https://phabricator.services.mozilla.com/D128928
2021-10-19 20:32:38 +00:00
Jan-Erik Rediger
ac10e466e7 Bug 1733757 - Update to Glean v42.0.1. r=Dexter
This includes a bugfix preventing a crash on Fenix,
a bugfix preventing a panic when trying to flush ping-lifetime data after shutdown,
as well as an API change to make `glean::persist_ping_lifetime_data` async.

Differential Revision: https://phabricator.services.mozilla.com/D128053
2021-10-11 10:35:04 +00:00
Chris H-C
c386e9b00a Bug 1731667 - Flush FOG IPC from content children on process shutdown r=janerik
Unfortunately not testable in an automated fashion.
Tested manually by adding to a test counter metric in ContentChild, shutting
down Firefox immediately (but normally),
removing the instrumentation, rebuilding, and rerunning. Then checking that
the test counter indeed has a value.

Differential Revision: https://phabricator.services.mozilla.com/D126295
2021-09-28 21:09:07 +00:00
Iulian Moraru
caf4295618 Backed out changeset 1890b6a3b3d2 (bug 1731667) for causing frequent address sanitizer failures. 2021-09-28 19:13:19 +03:00
Chris H-C
7b138891b3 Bug 1731667 - Flush FOG IPC from content children on process shutdown r=janerik
Unfortunately not testable in an automated fashion.
Tested manually by adding to a test counter metric in ContentChild, shutting
down Firefox immediately (but normally),
removing the instrumentation, rebuilding, and rerunning. Then checking that
the test counter indeed has a value.

While we're here, ensure we persist ping lifetime data _after_ flushing IPC
on idle to ensure we don't miss anything.

Differential Revision: https://phabricator.services.mozilla.com/D126295
2021-09-28 13:01:16 +00:00
Chris H-C
ed3a754c6b Bug 1729723 - Upgrade Glean to v41.1.0 r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D125834
2021-09-20 13:49:31 +00:00