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

9960 Коммитов

Автор SHA1 Сообщение Дата
Norisz Fay bc693a67ca Backed out changeset c6db198ff02c (bug 1772943) for causing mochitest failures on browser_doorhanger_installs.js CLOSED TREE 2022-07-21 13:10:16 +03:00
Jan de Mooij 4606b0a55c Bug 1780383 - Add profiler sub-category for Wasm frames. r=gerald,rhunt
Differential Revision: https://phabricator.services.mozilla.com/D152272
2022-07-21 06:52:44 +00:00
Jan de Mooij f18ab02529 Bug 1780091 - Use LR register value in the profiler in Mac/Windows ARM64 builds. r=mstange
The Wasm profiling frame iterator uses the return address in the LR register when
interrupting during the prologue. The Linux/Android code was correctly initializing it,
but on Mac and Windows we always used 0.

Differential Revision: https://phabricator.services.mozilla.com/D152268
2022-07-21 06:12:36 +00:00
Barret Rennie ccc656a53b Bug 1772943 - Port osfile.jsm usage to IOUtils in toolkit/mozapps/ r=Gijs,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D148967
2022-07-21 04:44:40 +00:00
andrej 94cf3a15d8 Bug 1778542 - Add components, owners and co-owners to firefox source docs. r=perftest-reviewers,sparky
What we are doing:
Adding a contact section in auto-generated performance testing docs so people know who to contact when they are having an issue with a given module/component

Differential Revision: https://phabricator.services.mozilla.com/D151400
2022-07-20 19:42:41 +00:00
Sylvestre Ledru 73d4a6ca57 no bug - Fix a few typo found by the next version of codespell r=marco
Differential Revision: https://phabricator.services.mozilla.com/D150321
2022-07-20 15:26:22 +00:00
Julien Cristau a6e32108ff Bug 1778728 - update-verify: request non-stale responses from the CDN r=releng-reviewers,jlorenzo DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D151469
2022-07-20 14:28:23 +00:00
Gerald Squelart e396382faf Bug 1779367 - If a shmem cannot be created for a child profile, send a message instead - r=florian
Instead of trying to create a too-big shmem, or if the shmem creation fails,
send a short message starting with '*', which the parent can put into the
profileGatheringLog.

Differential Revision: https://phabricator.services.mozilla.com/D152028
2022-07-20 12:53:00 +00:00
Gerald Squelart 8bd2131359 Bug 1779367 - Don't send shutdown profiles that don't fit in an IPC message - r=florian
Instead of trying to send a too-big message, send a short message starting
with '*', which the parent can put into the profileGatheringLog.

Note: The `CollectProfileOrEmptyString` is now only used by GrabShutdownProfile
(it was previously also used by RecvGatherProfile before it went async). Since
this patch is completely changing its implementation, we may as well fold it
back into its only caller.

Differential Revision: https://phabricator.services.mozilla.com/D152027
2022-07-20 12:53:00 +00:00
Gerald Squelart 06cccd124c Bug 1758643 - Preemptively discard child profiles that would add too much data - r=florian
Instead of throwing away the whole profile at the end if it's too big, we try
to keep as much data as possible, by only throwing away incoming child profiles
that would make the resulting combined full profile too big.

Differential Revision: https://phabricator.services.mozilla.com/D152026
2022-07-20 12:52:59 +00:00
Gerald Squelart 871abc7243 Bug 1758643 - Avoid double allocation when outputting profile JSON - r=florian
Instead of allocating a buffer with the profile and then copying it into an
nsCString (at which point there are two full copies in memory), we resize the
nsCString as needed and directly output the profile data into it.

Differential Revision: https://phabricator.services.mozilla.com/D152025
2022-07-20 12:52:59 +00:00
Gerald Squelart 2eb04e7cbc Bug 1758643 - Check for maximum string length before outputting profile JSON - r=florian
The promise to be resolved may end up in JavaScript, so we check for the
maximum JS string length -- which is under the nsCString max length, so we
won't fail the too-big-string assertion there.

Differential Revision: https://phabricator.services.mozilla.com/D152024
2022-07-20 12:52:59 +00:00
Gerald Squelart 83311bbbd6 Bug 1758643 - ResetGathering now take the nsresult to use in the promise rejection - r=florian
This will be used in the following patches to more easily reject the promise
with a specific code AND reset gathering, in one call.

Differential Revision: https://phabricator.services.mozilla.com/D152023
2022-07-20 12:52:58 +00:00
Gerald Squelart 39a5c27ebd Bug 1779685 - Add useful information to profile.profileGatheringLog.events - r=florian
This may be useful to advanced profiler users, to see how the multi-process
profile gathering went.

(Some information, like missing processes, could be useful to expose to all
users, but this should be done in future tasks, with corresponding front-end
work.)

Note: There are no direct tests, as this is intended for advanced human users,
and the format is not guaranteed to stay stable.

Differential Revision: https://phabricator.services.mozilla.com/D151902
2022-07-20 12:52:58 +00:00
Tooru Fujisawa 39b514ca9a Bug 1780301 - Part 4: Convert ChromeUtils.importESModule at top-level in ESM to static import in ./mach esmify --convert. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D152228
2022-07-20 11:34:33 +00:00
Tooru Fujisawa 44f5fff2b9 Bug 1780301 - Part 3: Add option to skip filename filter. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D152227
2022-07-20 11:34:32 +00:00
Tooru Fujisawa d62c324450 Bug 1780301 - Part 2: Move functions related to static import into static-import.js. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D152226
2022-07-20 11:34:32 +00:00
Tooru Fujisawa 963dc29e7b Bug 1780301 - Part 1: Move some shared functions into utils.js. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D152225
2022-07-20 11:34:31 +00:00
Gerald Squelart ef459acb0b Bug 1779513 - Log chunk updates&deletions in the ProfileBufferGlobalController - r=florian
This log goes into `profile.profilingLog[<parent pid>].bufferGlobalController.updates`, an array of data arrays.
See the related `updatesSchema` for what's in those data arrays.

Note: There are no direct tests, as this is intended for advanced human users,
and the format is not guaranteed to stay stable.

Differential Revision: https://phabricator.services.mozilla.com/D151776
2022-07-19 23:42:03 +00:00
Florian Quèze 736d90644e Bug 1778308 - Avoid adding 'nsThreadPool' runnable markers lasting the entire duration of the thread, r=bas,gerald.
Differential Revision: https://phabricator.services.mozilla.com/D151127
2022-07-19 19:00:14 +00:00
Andrew Halberstadt 816f3eeaca Bug 1780087 - [docs] Implement a 'searchfox' role, r=firefox-source-docs-reviewers,sylvestre
See the docstring in this patch for usage examples.

Differential Revision: https://phabricator.services.mozilla.com/D152124
2022-07-19 15:41:07 +00:00
Mark Banner 40adf1ae57 Bug 1780166 - When esmify is moving comments, check that comments on the from node exist. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D152150
2022-07-19 09:34:28 +00:00
Mark Banner a869ce033b Bug 1779989 - Explicitly disallow ES modules in ESLint import-globals-from statements. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D152002
2022-07-19 05:57:15 +00:00
Mark Banner f724fd0ca0 Bug 1779987 - Stop excluding search files from the rejected-words linter. r=mcheang
Differential Revision: https://phabricator.services.mozilla.com/D151999
2022-07-19 05:57:15 +00:00
Gijs Kruitbosch 92d44f3713 Bug 1737043 - add a suggestion for 'example.com' in the network error page for 'example', r=mak,eemeli,desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D129156
2022-07-19 03:27:18 +00:00
Mark Banner c973d7e4a7 Bug 1648286 - When linting, ignore all node_modules directories across the tree not only the top-level ones. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D152009
2022-07-18 20:47:12 +00:00
andrej 4cc772b589 Bug 1779472 - Allow compare selector to use --full for fuzzy. r=ahal
What we are doing:
Giving the fuzzy selector used in the compare selector --full as an option

Why:
By using --full we expand the test list available to the compare selector, and allow all tasks to be run. Without --full we only see a common subset of tasks typically run on moz-central

How we did this:
We are adding in the common_groups = ["task"] line which allowed fuzzy to be run with a general set of args of which one is --full

Differential Revision: https://phabricator.services.mozilla.com/D151837
2022-07-18 18:00:09 +00:00
Tooru Fujisawa a44ee2ceab Bug 1780050 - Rewrite extension when merging single lazy getter call to existing ChromeUtils.defineESModuleGetters. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D152084
2022-07-18 17:40:39 +00:00
Tooru Fujisawa 9948edffdf Bug 1779927 - Reuse existing ChromeUtils.defineESModuleGetters when converting lazy getters. r=Standard8
When converting lazy getter calls, if the previous/next statement is
`ChromeUtils.defineESModuleGetters`, add properties into it, instead of
converting the lazy getter call into `ChromeUtils.defineESModuleGetters`
or creating new `ChromeUtils.defineESModuleGetters` call.

Differential Revision: https://phabricator.services.mozilla.com/D151980
2022-07-18 09:22:39 +00:00
Iulian Moraru 5e7070f988 Backed out changeset 89d291a9ee9b (bug 1737043) for causing xpcshell failures on test_URIFixup_check_host.js. CLOSED TREE 2022-07-17 20:47:23 +03:00
Gijs Kruitbosch 393bdf2f46 Bug 1737043 - add a suggestion for 'example.com' in the network error page for 'example', r=mak,eemeli,desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D129156
2022-07-17 16:48:44 +00:00
Kagami Sascha Rosylight bb679fa417 Bug 1769290 - Part 24: Apply mozilla-js-handle-rooted-typedef against layout,security,storage,tools r=andi
Differential Revision: https://phabricator.services.mozilla.com/D151791
2022-07-14 17:00:24 +00:00
Zeid Zabaneh c800d1fef3 Bug 1737634: mots config file r=sheehan
This revision migrates all the content of the following modules:
- Desktop_Firefox
- Toolkit
- Core
- Testing

Up to the their state on Monday June 20th, 2022 in the old system.

The rst file was automatically generated by running `mots export`.

Differential Revision: https://phabricator.services.mozilla.com/D130508
2022-07-14 15:45:44 +00:00
Tooru Fujisawa b9aa9e471a Bug 1779538 - Rewrite ChromeUtils.importESModule with static import in sys.mjs. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D151801
2022-07-14 08:54:01 +00:00
Andi-Bogdan Postelnicu 72ba7fb691 Bug 1519636 - Reformat recent changes to the Google coding style. r=media-playback-reviewers,alwu
Updated with clang-format version 14.0.5 (taskcluster-cAkeFEZXQmihHYDO8Y4hRw)
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D151003
2022-07-14 08:10:07 +00:00
Matthew Gaudet edb3b93ed6 Bug 1777529 - Remove Profiler Support for TraceLogger r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D150768
2022-07-13 15:26:47 +00:00
Bogdan Szekely 8e55f13499 Backed out changeset e3ba86211812 (bug 1772943) for causing mochitest failures on browser_html_discover_view.js CLOSED TREE 2022-07-12 13:46:27 +03:00
Barret Rennie 6d73858beb Bug 1772943 - Port osfile.jsm usage to IOUtils in toolkit/mozapps/ r=Gijs,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D148967
2022-07-12 10:09:15 +00:00
Gerald Squelart d09d4ace99 Bug 1779007 - Fix non-MOZ_GECKO_PROFILER build - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D151563
2022-07-12 09:30:30 +00:00
Tooru Fujisawa 0cd8ca1ac9 Bug 1778818 - Add index to are-we-esmified-yet job, and add commit hash and date to the JSON. r=marco
Differential Revision: https://phabricator.services.mozilla.com/D151426
2022-07-11 19:09:43 +00:00
Tooru Fujisawa 1079972361 Bug 1776870 - Integrate esmify script into mach. r=yulia,firefox-static-analysis-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D150494
2022-07-11 14:55:11 +00:00
Tooru Fujisawa 46b5c20706 Bug 1667455 - Part 15: Stop using Services.jsm in eslint testcase. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D150904
2022-07-11 12:41:54 +00:00
Tooru Fujisawa 47c8f80432 Bug 1667455 - Part 6: Stop importing Services.jsm from chrome-priv JS code, non-top-level or multi-line cases. r=kmag,perftest-reviewers,AlexandruIonescu,sparky
Differential Revision: https://phabricator.services.mozilla.com/D150895
2022-07-11 12:41:51 +00:00
Tooru Fujisawa bf93d07148 Bug 1667455 - Part 5: Stop importing Services.jsm from chrome-priv JS code, top-level single-line cases. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,pip-reviewers,twisniewski,m_kato,jdescottes,mconley,AlexandruIonescu,mossop
Differential Revision: https://phabricator.services.mozilla.com/D150894
2022-07-11 12:41:50 +00:00
Tooru Fujisawa f3a8c52c53 Bug 1667455 - Part 4: Stop importing Services.jsm from JSM. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,application-update-reviewers,pip-reviewers,twisniewski,devtools-reviewers,m_kato,jdescottes,ochameau,mconley,sfoster,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D150893
2022-07-11 12:41:50 +00:00
Tooru Fujisawa badd55d158 Bug 1667455 - Part 2: Add Services to system globals in ESLint. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D150891
2022-07-11 12:41:48 +00:00
Julian Seward 49c073aa71 Bug 1777965 - LUL initialisation: inline `DoInstruction` into its calling loop. r=mstange.
When reading Dwarf unwind info, `CallFrameInfo::State::DoInstruction` is
called once per CFI instruction.  At both call sites, the call is driven by a
simple loop.  Because each call doesn't do much work, the call overhead is
quite high, and there are huge numbers of CFI instructions to be processed.

This patch moves the loop into its own method `DoInstructions`, and adds
annotations in the hope of getting `DoInstruction` inlined into the loop.

On an Intel Core i5 1135G7 at circa 4 GHz, this reduces the Dwarf read time
from 0.27 seconds (after bugs 1754932, 1777540 and 1777949 have landed) to
0.26 seconds.  Not much of a win, but on the other hand, the insn count falls
from 3906 million to 3640 million, which seems like a worthwhile win for what
is a trivial change.

Differential Revision: https://phabricator.services.mozilla.com/D151262
2022-07-11 05:08:31 +00:00
Gerald Squelart 12a671a4c4 Bug 1692934 - Record meta.profilingEndTime in each process - r=canaltinova
This profilingEndTime is the time when this property is actually written, which
corresponds to the end of the profiling session.
If it's a shutdown profile, the exact same time is used for the existing
`meta.shutdownTime` property.

Depends on D151355

Differential Revision: https://phabricator.services.mozilla.com/D151356
2022-07-08 14:23:37 +00:00
Gerald Squelart 29a5385f1e Bug 1692934 - Record meta.contentEarliestTime in each process - r=canaltinova
This contentEarliestTime is the time when the earliest (and oldest) surviving
chunk was prepared to start receiving data.
It should be a good hint to the front-end about where the profiling data
actually starts.

Differential Revision: https://phabricator.services.mozilla.com/D151355
2022-07-08 14:23:36 +00:00
Gerald Squelart 1bc597cb95 Bug 1692934 - Record meta.profilingStartTime in each process - r=canaltinova
This profilingStartTime is the time (relative to the process absolute start
time) when the profiling session started.

Differential Revision: https://phabricator.services.mozilla.com/D151354
2022-07-08 14:23:36 +00:00