Граф коммитов

737 Коммитов

Автор SHA1 Сообщение Дата
Andi-Bogdan Postelnicu 4efa1bd0ba Bug 1276351 - Move away from mozilla::tuple to std::tuple. r=necko-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D173256
2023-03-27 07:20:25 +00:00
Sandor Molnar 9db345d4c1 Backed out 2 changesets (bug 1276351) for causing build bustage in image/ClippedImage.cp CLOSED TREE
Backed out changeset e84598eb82c1 (bug 1276351)
Backed out changeset e940b0554484 (bug 1276351)
2023-03-25 14:16:43 +02:00
Andi-Bogdan Postelnicu 447f1e3358 Bug 1276351 - Move away from mozilla::tuple to std::tuple. r=necko-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D173256
2023-03-25 06:58:52 +00:00
Iulian Moraru 6d40eee997 Backed out 2 changesets (bug 1276351) for causing multiple failures.
Backed out changeset eeaf4f1e06af (bug 1276351)
Backed out changeset d44cb5704342 (bug 1276351)
2023-03-25 00:08:24 +02:00
Andi-Bogdan Postelnicu a1b827b503 Bug 1276351 - Move away from mozilla::tuple to std::tuple. r=necko-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D173256
2023-03-24 18:55:39 +00:00
Greg Stoll 6030033461 Bug 1536901 - add breakpad id to untrusted modules ping r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D172257
2023-03-24 01:20:17 +00:00
Nazım Can Altınova c896734446 Bug 1779257 - Fix the stack walking for linux markers by calling getcontext in a valid stack frame r=mstange
See my comment on here for more context of my investigation:
https://bugzilla.mozilla.org/show_bug.cgi?id=1779257#c9

The saved context is invalid once the function that called `getcontext`
returns. We need to call the `getcontext` while the frame where we called it is
still on the stack. That's why this patch is moving the call to `getcontext` to
parent function by inlining the SyncPopulate content by using a macro instead.
This has to be a macro instead of a function because stack pointer address will
be invalid once the `Registers::SyncPopulate` returns. I tried to change this
method to inline but that didn't help either.

Differential Revision: https://phabricator.services.mozilla.com/D170133
2023-02-22 19:57:08 +00:00
Florian Quèze 479b17f2f7 Bug 1817034 - add a new Timer profiler category to use it for markers in the Timer thread, r=canaltinova.
Differential Revision: https://phabricator.services.mozilla.com/D169973
2023-02-17 13:11:08 +00:00
Nazım Can Altınova 3c7629ff11 Bug 1814908 - Do not collect the marker stacks if NoMarkerStacks feature is set r=julienw,mstange
Differential Revision: https://phabricator.services.mozilla.com/D169112
2023-02-15 15:53:28 +00:00
Nazım Can Altınova a4089e0540 Bug 1814908 - Rename the noiostacks to nomarkerstacks r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D169110
2023-02-15 15:53:27 +00:00
Butkovits Atila 699dd296eb Backed out 4 changesets (bug 1814908) for causing Xpcshell failures at test_addProfilerMarker.js. CLOSED TREE
Backed out changeset 07252e8b15df (bug 1814908)
Backed out changeset 14f79f14b429 (bug 1814908)
Backed out changeset d9bdfd2796a8 (bug 1814908)
Backed out changeset 78e1485fe526 (bug 1814908)
2023-02-14 17:43:32 +02:00
Nazım Can Altınova 25d320785f Bug 1811068 - Implement the codeId for Windows r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D169519
2023-02-14 14:50:57 +00:00
Nazım Can Altınova 2dd9c867b8 Bug 1811068 - Implement the codeId for Linux r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D169518
2023-02-14 14:50:57 +00:00
Nazım Can Altınova a746c66ac3 Bug 1811068 - Implement the codeId for macOS r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D169517
2023-02-14 14:50:57 +00:00
Nazım Can Altınova fb46d65b02 Bug 1811068 - Fix the breakpad id bug on macOS shared libraries code r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D169516
2023-02-14 14:50:56 +00:00
Nazım Can Altınova a224d65e3f Bug 1811068 - Add codeId field to SharedLibrary class and output it in profile json r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D169515
2023-02-14 14:50:56 +00:00
Nazım Can Altınova 73a3af3877 Bug 1814908 - Do not collect the marker stacks if NoMarkerStacks feature is set r=julienw,mstange
Differential Revision: https://phabricator.services.mozilla.com/D169112
2023-02-14 14:11:42 +00:00
Nazım Can Altınova 4fdbbc649f Bug 1814908 - Rename the noiostacks to nomarkerstacks r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D169110
2023-02-14 14:11:42 +00:00
Norisz Fay 6e54d85e3b Backed out 4 changesets (bug 1814908) for causing cppunit failures on TestBaseProfiler CLOSED TREE
Backed out changeset 4fd5e3f3d87b (bug 1814908)
Backed out changeset 6a716b16e8e3 (bug 1814908)
Backed out changeset a8557338bd74 (bug 1814908)
Backed out changeset b1a9a1820b56 (bug 1814908)
2023-02-14 14:44:31 +02:00
Nazım Can Altınova 7952beca94 Bug 1814908 - Do not collect the marker stacks if NoMarkerStacks feature is set r=julienw,mstange
Differential Revision: https://phabricator.services.mozilla.com/D169112
2023-02-14 11:42:28 +00:00
Nazım Can Altınova 14ec874db5 Bug 1814908 - Rename the noiostacks to nomarkerstacks r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D169110
2023-02-14 11:42:27 +00:00
Andi-Bogdan Postelnicu d7e8a09c21 Bug 1519636 - Reformat recent changes to the Google coding style. r=glandium
Updated with clang-format version 15.0.5 (taskcluster-MKK8dHUpQkGfPLA793lizg)
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D168658
2023-02-13 15:02:07 +00:00
Florian Quèze 4407f46f5d Bug 1815438 - remove the 'Preference Read' profiler feature and record these markers unconditionally, r=canaltinova.
Differential Revision: https://phabricator.services.mozilla.com/D169239
2023-02-10 21:50:02 +00:00
Kash Shampur c0d7f950f7 Bug 1803109 - Discard blocks of data that are too big for two chunks. r=canaltinova
Currently, `ReserveAndPutRaw` allocates a second span even if the data would be too big for the chunk.
Here a second conditional is added to check if the block of data is too big in this scenario and silently discard the data if so.

Differential Revision: https://phabricator.services.mozilla.com/D167167
2023-01-27 17:25:37 +00:00
Nazım Can Altınova 14419ecf1f Bug 1615546 - Remove the optimizations field from profiler frame table r=julienw
This requires https://github.com/firefox-devtools/profiler/pull/4432 to be
landed and deployed. We bump the profile version in this patch.

Afaik we never used the optimizations field of the frame table in the profiler
frontend and this pfield was null for more than 3 years (since Bug 1614622).
We don't have any plans to make use of it any time soon. It's good to cleanup
this field so it doesn't clutter the profile data and we can reduce the profile
data size.

Differential Revision: https://phabricator.services.mozilla.com/D167290
2023-01-24 13:18:43 +00:00
Nazım Can Altınova 3894ab42c2 Bug 1807011 - Do not call TimeStamp::Now for text markers when profiler is not running r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D166804
2023-01-18 10:56:18 +00:00
Nazım Can Altınova ee86610605 Bug 1803751 - Make some marker fields searchable and bump the profile version r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D163714
2022-12-13 14:19:07 +00:00
Iulian Moraru e7e2922cb1 Backed out changeset 27f8690ebc50 (bug 1803751) for causing xpcshell failures on test_feature_mainthreadio.js. CLOSED TREE 2022-12-12 17:43:23 +02:00
Nazım Can Altınova 0d5987410a Bug 1803751 - Make some marker fields searchable and bump the profile version r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D163714
2022-12-12 13:11:56 +00:00
Marco Castelluccio 535e7144d1 Bug 1790816 - Reformat mozglue/ with isort. r=linter-reviewers,Standard8 DONTBUILD
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D162663
2022-11-23 13:01:33 +00:00
alwu cb93cefdcc Bug 1800547 - add some profiler markers for media engine playback. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D162055
2022-11-15 18:45:56 +00:00
Michael Comella 10a0137f2e Bug 1798388 - add Accessibility profiler category; convert existing code. r=canaltinova,eeejay
We use profiler categories to separate out the profiler markers for major
components, such as DOM or Layout, to quickly understand what is happening in
each of them: this will also be helpful for accessibility. One might be
concerned that we're adding too many categories but I think it's fine: the
accessibility category shouldn't appear if accessibility services aren't in use.
Furthermore, if accessibility code is running when it's unexpected, having the
accessibility category appear will only highlight that fact.

Differential Revision: https://phabricator.services.mozilla.com/D160846
2022-11-02 16:23:24 +00:00
Nika Layzell f8e46f7fb5 Bug 1797354 - Allow specifying capability type in thread-safety macros, r=jesup,media-playback-reviewers,alwu
It is possible to specify full names for capabilities when using the clang
thread-safety analysis which will be used in error messages. We should use that
form of the attribute rather than the legacy lockable attribute.

Differential Revision: https://phabricator.services.mozilla.com/D160531
2022-10-28 19:55:30 +00:00
Florian Quèze baad7da439 Bug 1795047 - Power use feature string should clarify what's available on each platform, r=canaltinova,dlrobertson.
Differential Revision: https://phabricator.services.mozilla.com/D159685
2022-10-20 16:01:51 +00:00
Cristian Tuns 68f6550eb9 Backed out changeset 94963e082433 (bug 1795047) for causing mochitest failures on performance-new/utils.js CLOSED TREE 2022-10-20 10:40:59 -04:00
Florian Quèze d167696f69 Bug 1795047 - Power use feature string should clarify what's available on each platform, r=canaltinova,dlrobertson.
Differential Revision: https://phabricator.services.mozilla.com/D159685
2022-10-20 13:40:33 +00:00
Paul Adenot 6cd95831a0 Bug 1795840 - Add various markers around video frame scheduling. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D159580
2022-10-20 07:37:54 +00:00
Butkovits Atila fea1444858 Backed out changeset d7d5dd2cdd78 (bug 1795840) for causing cppunit failures. CLOSED TREE 2022-10-19 21:28:11 +03:00
Paul Adenot deeed27a1f Bug 1795840 - Add various markers around video frame scheduling. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D159580
2022-10-19 13:35:57 +00:00
Marian Laza ee334b4183 Backed out changeset 0a01bc98928c (bug 1795840) for causing GTest failures on GeckoProfiler.cpp. CLOSED TREE 2022-10-19 13:55:58 +03:00
Paul Adenot 3e51c5282b Bug 1795840 - Add various markers around video frame scheduling. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D159580
2022-10-19 09:38:16 +00:00
Mike Hommey cbd2293129 Bug 1791481 - Avoid tail-call optimization of call to GetAndCheckStackTrace. r=mstange
While here, change the gtest to display how many tests passed.

Differential Revision: https://phabricator.services.mozilla.com/D157888
2022-10-04 05:16:06 +00:00
Gerald Squelart 92a9be7744 Bug 1774773 - Added atomic locking around marker schema functions - r=florian
To avoid real or apparent races to the list of marker schema functions, some
bits of the atomic count are used to effectively implement a RWLock, so that
any number of threads can add their own new marker schema concurrently, while
the profile-capture reading of the whole list can only be done on its own.

Differential Revision: https://phabricator.services.mozilla.com/D157310
2022-09-15 03:39:00 +00:00
Gerald Squelart 14f77ee12e Bug 1612799 - Make UniqueJSONStrings operations fallible - r=canaltinova
When something goes wrong, the most likely cause is running out of memory, so
we clear our data to try and free some memory ASAP, to hopefully reduce the
likelihood of a terminating OOM elsewhere.

Differential Revision: https://phabricator.services.mozilla.com/D155653
2022-09-05 01:19:29 +00:00
Gerald Squelart 7dc3f8d14e Bug 1612799 - Make UniqueJSONStrings a FailureLatch - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D155652
2022-09-05 01:19:29 +00:00
Gerald Squelart 1339f652fd Bug 1612799 - Make Spliceable{,Chunked}JSONWriter a FailureLatch - r=canaltinova
For now, all users specify an infallible latch.

Differential Revision: https://phabricator.services.mozilla.com/D155651
2022-09-05 01:19:28 +00:00
Gerald Squelart 1d441558f5 Bug 1612799 - Refactor SpliceableChunkedJSONWriter's access to its ChunkedJSONWriteFunc - r=canaltinova
Instead of redundantly explaining each `static_cast` in different
SpliceableChunkedJSONWriter functions, safe accesses are now isolated to only
two functions, making the public function implementations simpler, including
changes in the following patch.

Differential Revision: https://phabricator.services.mozilla.com/D155650
2022-09-05 01:19:28 +00:00
Gerald Squelart cc671ebfb1 Bug 1612799 - Make ChunkedJSONWriteFunc a FailureLatch, with optionally-fallible operations - r=canaltinova
Note that at this point, it's using the FailureLatchInfallibleSource singleton,
so operations are still effectively infallible, i.e. they will terminate the
program.
But users already handle future fallible outcomes.

Differential Revision: https://phabricator.services.mozilla.com/D155649
2022-09-05 01:19:28 +00:00
Gerald Squelart 9c971ec78d Bug 1612799 - Add default initializers for ChunkedJSONWriteFunc member variables - r=canaltinova
This removes some redundant initializers in constructors (present and future).

Also some [[nodiscard]]s were added where appropriate, and empty lines for
clarity.

Differential Revision: https://phabricator.services.mozilla.com/D155648
2022-09-05 01:19:27 +00:00
Gerald Squelart de815dbad9 Bug 1612799 - FailureLatch - r=canaltinova
The FailureLatch interface, and some implementation helpers and classes, will
be used to record the first failure (if any) during some long process.

Differential Revision: https://phabricator.services.mozilla.com/D155647
2022-09-05 01:19:27 +00:00