Commit Graph

55 Commits

Author SHA1 Message Date
Florian Quèze
581794e9d6 Bug 1763474 - Report thread wake-ups and CPU time per thread through glean, r=gerald,chutten
Differential Revision: https://phabricator.services.mozilla.com/D141147
2022-04-23 11:38:19 +00:00
Marian-Vasile Laza
2a03720462 Backed out changeset 700318695e2b (bug 1763474) for causing GTest failures and mochitest failures on ProfilerThreadRegistrationData.cpp. CLOSED TREE 2022-04-22 12:57:22 +03:00
Florian Quèze
5319124792 Bug 1763474 - Report thread wake-ups and CPU time per thread through glean, r=gerald,chutten
Differential Revision: https://phabricator.services.mozilla.com/D141147
2022-04-22 06:20:51 +00:00
Narcis Beleuzu
b58b937696 Backed out 1 changesets (bug 1763474) for assertion failures. CLOSED TREE
Backed out changeset 576565c650a1 (bug 1763474)
2022-04-15 02:26:13 +03:00
Florian Quèze
88dcf0625d Bug 1763474 - Report thread wake-ups and CPU time per thread through glean, r=gerald,chutten
Differential Revision: https://phabricator.services.mozilla.com/D141147
2022-04-14 22:08:53 +00:00
Florian Quèze
3f7114a09f Bug 1759535 - Report thread wake-ups through glean, r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D141050
2022-03-28 22:13:09 +00:00
Alexandre Lissy
d75f6c5c9b Bug 1753424 - Support running multiple UtilityProcess r=nika
Differential Revision: https://phabricator.services.mozilla.com/D139817
2022-03-26 19:46:43 +00:00
Cristian Tuns
c6cb3415f1 Backed out 6 changesets (bug 1753424) for causing build bustages CLOSED TREE
Backed out changeset 930136daf858 (bug 1753424)
Backed out changeset d62c1e5d1881 (bug 1753424)
Backed out changeset 911060d2bd8e (bug 1753424)
Backed out changeset cce723862a92 (bug 1753424)
Backed out changeset 97b3fd69185b (bug 1753424)
Backed out changeset 4748652694c7 (bug 1753424)
2022-03-26 14:49:47 -04:00
Alexandre Lissy
5ddd71a38b Bug 1753424 - Support running multiple UtilityProcess r=nika
Differential Revision: https://phabricator.services.mozilla.com/D139817
2022-03-26 09:53:47 +00:00
Butkovits Atila
471aa4e8c0 Backed out 5 changesets (bug 1753424) for causing bustages. CLOSED TREE
Backed out changeset e2b40064eb59 (bug 1753424)
Backed out changeset 0892c1d3c379 (bug 1753424)
Backed out changeset 4df499ef4647 (bug 1753424)
Backed out changeset f27fbfb9e8f1 (bug 1753424)
Backed out changeset 0f244f2eb2de (bug 1753424)
2022-03-26 16:39:16 +02:00
Alexandre Lissy
457f0ad529 Bug 1753424 - Support running multiple UtilityProcess r=nika
Differential Revision: https://phabricator.services.mozilla.com/D139817
2022-03-26 09:53:47 +00:00
Alexandre Lissy
823a7d2a88 Bug 1758715 - Dont always instantiate a UtilityProcessManager from FOG r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D139966
2022-03-11 11:47:53 +00:00
Bryce Seager van Dyk
aa0d0e05d8 Bug 1757347 - Further qualify mozilla::gmp namespace usage. r=florian
This avoids lookup failures if we introduce glean metrics under 'gmp'. If we do
introduce such metrics, they create a mozilla::glean::gmp namespace which
confuses lookup for these lines.

Differential Revision: https://phabricator.services.mozilla.com/D139799
2022-02-28 21:04:25 +00:00
Florian Quèze
c788ee27ec Bug 1755733 - record when bogus CPU or GPU time values are discarded, r=chutten.
Depends on D138917

Differential Revision: https://phabricator.services.mozilla.com/D139287
2022-02-22 23:27:39 +00:00
Florian Quèze
755b493bcc Bug 1755733 - avoid reporting impossibly large GPU time values in Glean, r=chutten.
Differential Revision: https://phabricator.services.mozilla.com/D138917
2022-02-22 23:27:39 +00:00
Kershaw Chang
9fbf9d7b4c Bug 1755866 - Don't call GetGpuTimeSinceProcessStartInMs in socket process, r=florian,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D138994
2022-02-17 13:21:19 +00:00
Florian Quèze
21fc1eb902 Bug 1754424 - Add profiler markers for CPU and GPU time recorded in Glean, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D138267
2022-02-09 19:50:45 +00:00
Florian Quèze
c61b811f78 Bug 1747138 - Breakdown CPU and GPU time by process type, r=chutten,gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D134441
2022-02-03 20:37:21 +00:00
smolnar
c3e516dd0e Backed out changeset cd96e020a609 (bug 1747138) for causing bc failures in browser_telemetry_video_hardware_decoding_support. CLOSED TREE 2022-02-03 19:51:02 +02:00
Florian Quèze
f31dc8192a Bug 1747138 - Breakdown CPU and GPU time by process type, r=chutten,gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D134441
2022-02-03 12:20:15 +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
Chris H-C
e3fc6beb37 Bug 1751241 - Ensure CPU and GPU time measurements fit in instrumentation r=florian,janerik
Differential Revision: https://phabricator.services.mozilla.com/D136652
2022-01-24 21:26:43 +00:00
Sandor Molnar
e0745166a5 Backed out 2 changesets (bug 1751241) for causing xpc failures in toolkit/components/glean/tests/xpcshell/test_GIFFT.js CLOSED TREE
Backed out changeset 403e96a8429b (bug 1751241)
Backed out changeset 7d047cf994cc (bug 1751241)
2022-01-24 19:11:52 +02:00
Chris H-C
46008bb018 Bug 1751241 - Ensure CPU and GPU time measurements fit in instrumentation r=florian,janerik
Differential Revision: https://phabricator.services.mozilla.com/D136652
2022-01-24 16:41:43 +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
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
Florian Quèze
2eae4507c3 Bug 1745444 - Add a test for collecting FOG data on the Socket process, r=chutten,necko-reviewers,valentin.
Differential Revision: https://phabricator.services.mozilla.com/D133510
2021-12-15 22:18:33 +00:00
Florian Quèze
f6fefe3ae6 Bug 1745444 - Merge TestTriggerGPUMetrics and TestTriggerRDDMetrics into a method taking a process type as parameter, r=chutten.
Differential Revision: https://phabricator.services.mozilla.com/D133508
2021-12-15 22:18:32 +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
978609a387 Bug 1745444 - Add a test for collecting FOG data on the Socket process, r=chutten,necko-reviewers,valentin.
Differential Revision: https://phabricator.services.mozilla.com/D133510
2021-12-15 16:27:57 +00:00
Florian Quèze
13f16003c3 Bug 1745444 - Merge TestTriggerGPUMetrics and TestTriggerRDDMetrics into a method taking a process type as parameter, r=chutten.
Differential Revision: https://phabricator.services.mozilla.com/D133508
2021-12-15 16:27:57 +00: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
Florian Quèze
db3dc332da Bug 1744162 - Test that RDD-process FOG metrics work r=chutten.
Differential Revision: https://phabricator.services.mozilla.com/D133137
2021-12-10 12:20:10 +00: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
Chris H-C
cf606bb7e9 Bug 1729026 - Test that GPU-process FOG metrics work r=Dexter,nical
Differential Revision: https://phabricator.services.mozilla.com/D132406
2021-12-01 14:35:08 +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
Florian Quèze
b19b299166 Bug 1743176 - Collect the GPU time used in the parent process through Glean, r=chutten,jrmuizel.
Differential Revision: https://phabricator.services.mozilla.com/D132265
2021-11-30 21:07:28 +00:00
Florian Quèze
1304f16dc3 Bug 1736040 - collect CPU time through Glean, r=chutten,gerald,gcp
Differential Revision: https://phabricator.services.mozilla.com/D128609
2021-10-25 18:27:24 +00:00
Jan-Erik Rediger
ce8794cc53 Bug 1708669 - Register FOG custom pings on Android builds to enable Glean functionality. r=chutten,geckoview-reviewers,agi
This instantiates the FOG service, which in turn registers an idle
observer, which is required for FOG IPC to be triggered occasionally.

Glean itself will be controlled by the surrounding Android application.
Glean symbols are shipped in this GeckoView build.
Any metrics recorded in Gecko will be passed through to the Android
application, e.g. Fenix.

This also re-exports `rlb_flush_dispatcher` to be called by Glean Core from the Kotlin side.

Currently this does not support sending custom pings inside Gecko.
Testing Glean metrics in an Android build will be enabled in subsequent commits.

Differential Revision: https://phabricator.services.mozilla.com/D126799
2021-10-22 08:53:28 +00:00
Chris H-C
479178c677 Bug 1694739 - FOG IPC flush after 5s of idle r=janerik
Interestingly, on my machine, it appears to be after every 5s of idle,
not just after the first 5s of idle. We may wish to tweak that.

We also instrument the size and speed of IPC as seen from the POV of the parent
process, for monitoring purposes.

Differential Revision: https://phabricator.services.mozilla.com/D106947
2021-03-08 18:27:53 +00:00
Dorel Luca
8047313b75 Backed out 2 changesets (bug 1694739) for XPCshell failures in toolkit/components/glean/xpcshell/test_GleanIPC.js. CLOSED TREE
Backed out changeset 123143e183f9 (bug 1694739)
Backed out changeset 9a0f48229f33 (bug 1694739)
2021-03-08 18:11:18 +02:00
Chris H-C
241e9e5086 Bug 1694739 - FOG IPC flush after 5s of idle r=janerik
Interestingly, on my machine, it appears to be after every 5s of idle,
not just after the first 5s of idle. We may wish to tweak that.

We also instrument the size and speed of IPC as seen from the POV of the parent
process, for monitoring purposes.

Differential Revision: https://phabricator.services.mozilla.com/D106947
2021-03-08 15:27:42 +00:00
Jan-Erik Rediger
31d52fe903 Bug 1695197 - Turn FOG into a GNop* on Android. r=chutten
GNop = Glean No-op.
This disables all control and recording functionality when build for
Android.

Differential Revision: https://phabricator.services.mozilla.com/D106767
2021-03-04 11:15:13 +00:00
Jan-Erik Rediger
bf1b67b759 Bug 1677962 - Generate FFI definitions using cbindgen. r=emilio,chutten
cbindgen can work with expanded macros, but it requires a nightly rustc
to do its work.
We can't rely on a nightly compiler though, so the solution is:
Manually define the outer parts of the FFI function and use a macro for
the repetitive inner parts.
This also more easily allows for type conversions where needed.

Differential Revision: https://phabricator.services.mozilla.com/D97596
2020-12-10 13:47:02 +00:00
Cristina Coroiu
1229205f9d Backed out 8 changesets (bug 1677455, bug 1678583, bug 1677962, bug 1675286) for xpcshell failures at toolkit/components/glean/xpcshell/test_Glean.js on a CLOSED TREE
Backed out changeset ab0d5057817b (bug 1677455)
Backed out changeset 1e26d2cecfe7 (bug 1678583)
Backed out changeset 555eb48642be (bug 1678583)
Backed out changeset 7346565f35b4 (bug 1678583)
Backed out changeset 0e40c4b34ec7 (bug 1678583)
Backed out changeset b3b6cfebc8e3 (bug 1677962)
Backed out changeset 6c6a59d7c472 (bug 1675286)
Backed out changeset 45c8c0f1d7bf (bug 1675286)
2020-12-09 16:38:20 +02:00
Jan-Erik Rediger
3b6b07d3a2 Bug 1677962 - Generate FFI definitions using cbindgen. r=emilio,chutten
cbindgen can work with expanded macros, but it requires a nightly rustc
to do its work.
We can't rely on a nightly compiler though, so the solution is:
Manually define the outer parts of the FFI function and use a macro for
the repetitive inner parts.
This also more easily allows for type conversions where needed.

Differential Revision: https://phabricator.services.mozilla.com/D97596
2020-12-09 09:44:22 +00:00