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

8933 Коммитов

Автор SHA1 Сообщение Дата
Florian Quèze a350b3e6d3 Bug 1687709 - enable the CPU utilization feature by default for startup profiling, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D102451
2021-01-21 11:05:25 +00:00
Gregory Mierzwinski 40f4b63085 Bug 1686327 - Rewrite raptor gecko-profiling code. r=julienw
This patch rewrites some parts of the GeckoProfiler code to make it clearer and easier to maintain. It also changes how the profiles get organized into separate folders for each type. Furthermore, the archives no longer have the full directory path in them. To do this, we also have to update browsertime.

Differential Revision: https://phabricator.services.mozilla.com/D102043
2021-01-20 15:40:35 +00:00
Yura Zenevich 09a23bc0e6 Bug 1667998 - add AccessibilityUtils for testing accessibility related issues and use it to check accessibility when EventUtils.sendMouseEvent is used to make a click. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D100839
2021-01-15 18:20:37 +00:00
Daisuke Akatsuka b4770ef752 Bug 1678619: Implement a mechanism to fire pages-rank-changed event. r=mak
Depends on D100458

Differential Revision: https://phabricator.services.mozilla.com/D100459
2021-01-15 11:00:32 +00:00
Tyson Smith fb3bd328a3 No bug - Update fuzz blocker docs. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D102242
2021-01-20 03:42:43 +00:00
Gerald Squelart 87910429ba Bug 1685938 - Keep CPU measurements and their timestamp within 8*median duration - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D101546
2021-01-19 02:55:35 +00:00
Gerald Squelart 73c0a73dad Bug 1685938 - Add RunningTimes::mPostMeasurementTimeStamp and use as sample timestamp - r=canaltinova
mPostMeasurementTimeStamp records the time right after CPU measurements (point-based or interval) ended.
It is then used as the main sample timestamp, to both avoid another TimeStamp::Now() call, and to keep measurements and timestamp as close together as possible (and even closer in the next patch).

Differential Revision: https://phabricator.services.mozilla.com/D101545
2021-01-19 02:54:43 +00:00
Gerald Squelart 0688b80ad5 Bug 1685938 - Precompute sample timestamps as milliseconds in sampler loop - r=canaltinova
This handles the conversion (from TimeStamp to number of milliseconds since process start) once and gives it to subroutines.
It will also help in a following patch where this value will be more closely tied with the CPU usage value, so we need to make sure the sample timestamp is taken at a single point and then forwarded wherever it's needed, be it a duplicate or a real sample.

While here, the nested `delta` variables in the Sampler have been disambiguated for better clarity:
- `sampleStartDeltaMs` is at the start of each sampling loop,
- `threadSampleDeltaMs` is associated to one thread being sampled during that loop.

Differential Revision: https://phabricator.services.mozilla.com/D101544
2021-01-19 02:54:15 +00:00
Gerald Squelart 30c1777768 Bug 1685938 - Remove unused parameters in DoPeriodicSample - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D101543
2021-01-19 02:53:42 +00:00
Mike Hommey e4bf32e4f8 Bug 1686888 - Stop building dump_syms. r=gsvelto
Now that we use an external dump_syms, we don't need to build
breakpad's.

This means we also don't need the dump_syms_rust_demangle crate anymore.

Differential Revision: https://phabricator.services.mozilla.com/D101865
2021-01-15 10:31:48 +00:00
Noemi Erli 8ad2a18a79 Backed out 5 changesets (bug 1667998) for breaking a11y checks CLOSED TREE
Backed out changeset 633dda979b22 (bug 1667998)
Backed out changeset c9838cdb1303 (bug 1667998)
Backed out changeset 501c54cf59be (bug 1667998)
Backed out changeset 615b74c822ec (bug 1667998)
Backed out changeset 6d187c01fcb3 (bug 1667998)
2021-01-15 20:16:06 +02:00
Yura Zenevich ef01f4bcb9 Bug 1667998 - add AccessibilityUtils for testing accessibility related issues and use it to check accessibility when EventUtils.sendMouseEvent is used to make a click. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D100839
2021-01-15 16:52:44 +00:00
Myeongjun Go b30d64aa2e Bug 1674793 - [perfdocs] Expand the unit tests for perfdocs. r=sparky
Differential Revision: https://phabricator.services.mozilla.com/D99608
2021-01-15 14:47:36 +00:00
Butkovits Atila db44a41c6c Backed out 5 changesets (bug 1678619) for causing memory leaks. CLOSED TREE
Backed out changeset 64be4bea09dd (bug 1678619)
Backed out changeset 308fda30c166 (bug 1678619)
Backed out changeset efb9bdef89b8 (bug 1678619)
Backed out changeset d26f45eac0b9 (bug 1678619)
Backed out changeset b2f22d6d2725 (bug 1678619)
2021-01-15 12:56:01 +02:00
Daisuke Akatsuka e97c2c8e87 Bug 1678619: Implement a mechanism to fire pages-rank-changed event. r=mak
Depends on D100458

Differential Revision: https://phabricator.services.mozilla.com/D100459
2021-01-14 23:33:38 +00:00
Chris H-C fa00168092 Bug 1686726 - Update TSan docs to be slightly more precise r=Gankra
Differential Revision: https://phabricator.services.mozilla.com/D101817
2021-01-14 23:44:19 +00:00
Aaron Klotz b55bf5ac03 Bug 1611554: Part 3 - Use jinja templates to generate GeckoChildProcessServices.java and AndroidManifest_overlay.xml; r=geckoview-reviewers,agi
This patch converts `GeckoChildProcessServices.java` into a jinja template.
We also add an overlay generated from a jinja template for `AndroidManifest.xml`
that provides the definitions for content process services.

Note that even though Gradle supports simple substitution of variables in
manifests, I opted not to use that functionality. Since we need the more
powerful template functionality that jinja provides, I felt that having multiple
ways to substitute information into the manifest would be confusing, so we're
using jinja exclusively.

Differential Revision: https://phabricator.services.mozilla.com/D82578
2021-01-13 01:19:15 +00:00
Butkovits Atila bcdf48f6d6 Backed out 3 changesets (bug 1611554) for causing bustage on recurse.mk. CLOSED TREE
Backed out changeset bb1ce63d73ec (bug 1611554)
Backed out changeset 0d4317da1006 (bug 1611554)
Backed out changeset dc905e5db0cc (bug 1611554)
2021-01-13 03:16:17 +02:00
Aaron Klotz 898fb17519 Bug 1611554: Part 3 - Use jinja templates to generate GeckoChildProcessServices.java and AndroidManifest_overlay.xml; r=geckoview-reviewers,agi
This patch converts `GeckoChildProcessServices.java` into a jinja template.
We also add an overlay generated from a jinja template for `AndroidManifest.xml`
that provides the definitions for content process services.

Note that even though Gradle supports simple substitution of variables in
manifests, I opted not to use that functionality. Since we need the more
powerful template functionality that jinja provides, I felt that having multiple
ways to substitute information into the manifest would be confusing, so we're
using jinja exclusively.

Differential Revision: https://phabricator.services.mozilla.com/D82578
2021-01-13 00:38:25 +00:00
Mitchell Hentges f4a03e538f Bug 1680802: Install pylint requirements with legacy resolver r=firefox-build-system-reviewers,sheehan,glandium
pylint_requirements.txt fail to install with the new pip resolver due
to a conflict between astroid and lazy-object-proxy.
Rather than bumping those packages and handling the potential fallout,
the package-upgrade has been deferred and we will use the legacy
resolver in the interrim.

Differential Revision: https://phabricator.services.mozilla.com/D99940
2021-01-05 20:14:25 +00:00
Gregory Mierzwinski ddfec86473 Bug 1680998 - Update browsertime to v11. r=perftest-reviewers,davehunt
This patch updates browsertime to v11 which has a fix for the visual metrics failures that we've been seeing recently.

Differential Revision: https://phabricator.services.mozilla.com/D101193
2021-01-08 17:03:30 +00:00
Tyson Smith 77dd494f63 No bug - Update fuzz blocker Bugzilla link. r=sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D101095
2021-01-08 08:23:02 +00:00
David Major 180d35da9f Bug 1685335 - Update to clang 11.0.1 r=firefox-build-system-reviewers,static-analysis-reviewers,andi,mhentges,sylvestre
In addition to the usual dot-release type of fixes, this also lets us drop a good amount of code that we had patched into our clang 11.

Differential Revision: https://phabricator.services.mozilla.com/D100959
2021-01-07 13:53:53 +00:00
Kartik Gautam 8828f6896c Bug 1682817 - Make whitespace/newline linter also fail for absent newline character at the end of files and also implement fix for it r=sylvestre
Depends on D100484

Differential Revision: https://phabricator.services.mozilla.com/D100443
2021-01-07 08:53:16 +00:00
Kartik Gautam 7ae6aea145 Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D100484
2021-01-07 08:53:08 +00:00
Mark Banner d866ed81a6 Bug 1685053 - Fix ESLint's setup_helper.py to continue working when a dependency section is missing in package.json. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D100765
2021-01-06 14:14:30 +00:00
Renovate Bot c2ff53383e Bug 1685147 - Update dependency sphinx-rtd-theme to v0.5.1 r=firefox-source-docs-reviewers,championshuttler DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D100812
2021-01-05 22:10:19 +00:00
Kartikaya Gupta 8e2db561f5 Bug 1685198 - Fix failure on first sync for new repo. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D100843
2021-01-06 01:31:35 +00:00
Sylvestre Ledru 0ac5b07241 Bug 1684863 - Update to Sphinx 3.4.2 r=firefox-source-docs-reviewers,championshuttler DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D100672
2021-01-04 14:16:28 +00:00
Mark Banner 14da69d10f Bug 1684905 - Fully enable globalThis for ESLint. r=Gijs,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D100697
2021-01-04 20:32:57 +00:00
Gerald Squelart a82ad0bb16 Bug 1329600 - Capture CPU usage on Linux - r=canaltinova,gcp
Differential Revision: https://phabricator.services.mozilla.com/D99416
2021-01-04 11:37:46 +00:00
Gerald Squelart 8ae4195eeb Bug 1329600 - Capture CPU usage on macos - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D99415
2021-01-04 07:22:59 +00:00
Gerald Squelart 6b6370fc4a Bug 1329600 - Capture CPU usage on Windows - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D99414
2021-01-04 07:19:18 +00:00
Gerald Squelart ecaf794c38 Bug 1329600 - Scaffolding to output CPU measurements in samples - r=canaltinova
The `RunningTimes` class stores CPU measurements. It may seem overkill for only one value, but in the future more measurements will be added.

During sampling, CPU measurements are collected by platform-specific code. This patch doesn't produce anything yet, see later patches.
These are stored with the samples.
Note that for duplicated samples (when a thread is known to be "asleep"), we still need to collect new measurements, because there could potentially be some activity happening, e.g. in system calls.
Finally the measurements are output as extra "samples" values.

Units for these values may platform-specific, so they are stored in the top-level JSON "meta" object.

We don't collect running times in the Base Profiler (yet), but we still need to add the appropriate field names in the samples' "schema", as expected by profiler.firefox.com.

Differential Revision: https://phabricator.services.mozilla.com/D99413
2021-01-04 07:19:16 +00:00
Gerald Squelart 484485975e Bug 1679930 - Add ActivePS experimental feature "CPU Utilization" - r=canaltinova
This patch adds "CPU Utilization" ("cpu" for short) as a new feature that will control the upcoming still-experimental CPU measurements.

Differential Revision: https://phabricator.services.mozilla.com/D99054
2021-01-04 07:17:38 +00:00
Gerald Squelart 581ab50327 Bug 1679930 - When the sampler thread function starts, it can store all ActivePS features - r=canaltinova
Instead of only capturing one feature (NoStackSampling), the sampler thread now stores all features so that any feature can be quickly looked at during sampling.

Currently this is still limited to NoStackSampling, a later patch will start using another feature.

Differential Revision: https://phabricator.services.mozilla.com/D99053
2021-01-04 07:16:59 +00:00
Cosmin Sabou 8a46d2e9d6 Backed out 3 changesets (bug 1680802, bug 1680630) for turning Bug 1521378 into permafail. CLOSED TREE
Backed out changeset 3464c8f10994 (bug 1680630)
Backed out changeset 591d32364c0f (bug 1680802)
Backed out changeset 3e9350fd509d (bug 1680802)
2021-01-04 18:47:44 +02:00
Mitchell Hentges cdf668d1ae Bug 1680802: Install pylint requirements with legacy resolver r=firefox-build-system-reviewers,sheehan,glandium
pylint_requirements.txt fail to install with the new pip resolver due
to a conflict between astroid and lazy-object-proxy.
Rather than bumping those packages and handling the potential fallout,
the package-upgrade has been deferred and we will use the legacy
resolver in the interrim.

Differential Revision: https://phabricator.services.mozilla.com/D99940
2021-01-04 15:20:21 +00:00
Cosmin Sabou 2978aa00a3 Backed out changeset dbed1cdf588f (bug 1684173) for mochitest plain and devtools failures. a=backout DONTBUILD 2020-12-28 00:43:51 +02:00
Kartik Gautam 775cdec032 Bug 1684173 - Add newline character at end of files when missing r=sylvestre
Depends on D100443

Differential Revision: https://phabricator.services.mozilla.com/D100484
2020-12-27 11:43:41 +00:00
Razvan Maries 5ddff60025 Backed out 2 changesets (bug 1681985) for perma failures on test_basic.js and test_getInfo.js. CLOSED TREE
Backed out changeset 1ba9b39ff543 (bug 1681985)
Backed out changeset b515a3ab8bac (bug 1681985)
2020-12-23 20:04:55 +02:00
Erik Rose 47dfb80606 Bug 1681985 - Extract LabelUtils to FormAutofillUtils.jsm. r=zbraniecki
We need it from both FormAutofillHeuristics and CreditCardRuleset, and it would make a circular import otherwise: FormAutofillHeuristics -> CreditCardRuleset -> FormAutofillHeuristics.

Differential Revision: https://phabricator.services.mozilla.com/D100140
2020-12-21 21:08:25 +00:00
Daisuke Akatsuka ac34979ed4 Bug 1678606: Imlement a mechanism to fire history-cleared event. r=mak
Depends on D99424

Differential Revision: https://phabricator.services.mozilla.com/D99750
2020-12-23 08:15:50 +00:00
Gerald Squelart f1f98f5879 Bug 1678651 - Centralize scExpectedMaximumStackSize in ProfileBufferChunkManager - r=canaltinova
The "expected maximum stack size" (currently 64KiB) value was present in multiple places.
Now it's accessible from everywhere as ProfileBufferChunkManager::scExpectedMaximumStackSize, so it's easier to modify as needed.

Differential Revision: https://phabricator.services.mozilla.com/D100222
2020-12-22 10:50:54 +00:00
Gerald Squelart 5e0acb08c3 Bug 1678651 - Fixed sampler's detection of too-big stacks - r=canaltinova
The profiler sampler was using the "cleared block count" as indication that some data could not be stored.
But this was incorrect, because cleared blocks only account for blocks in chunks that have been destroyed or recycled, but this missed data that could not be stored due to lack of space.
In particular, `ProfileBufferChunkManagerSingle` only provides one chunk, so when it gets full, a new chunk cannot be allocated, and the data is lost; but the "cleared block count" is left unchanged (the one chunk is only released, but not destroyed nor recycled).

Now the sampler correctly looks at the "failed puts bytes", and can report precisely how many bytes could not be stored.

Differential Revision: https://phabricator.services.mozilla.com/D99978
2020-12-22 10:49:30 +00:00
Renovate Bot 07ec351c5b Bug 1683628 - Update dependency Sphinx to v3.4.0 r=firefox-source-docs-reviewers,championshuttler DONTBUILD
Found by renovate bot: https://github.com/sylvestre/gecko-dev/pull/128/files

Differential Revision: https://phabricator.services.mozilla.com/D100228
2020-12-21 12:17:03 +00:00
Sylvestre Ledru 00977921cb Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio DONTBUILD
Updated with rustfmt 1.4.24-stable (eb894d5 2020-11-05)

# ignore-this-changeset

Depends on D100230

Differential Revision: https://phabricator.services.mozilla.com/D100231
2020-12-21 12:15:49 +00:00
Renovate Bot 88ba586595 Bug 1683628 - Update dependency recommonmark to v0.7.1 r=firefox-source-docs-reviewers,championshuttler DONTBUILD
reported https://github.com/sylvestre/gecko-dev/pull/346/files

Differential Revision: https://phabricator.services.mozilla.com/D100229
2020-12-21 12:14:19 +00:00
Gerald Squelart c50f75d970 Bug 1683314 - Convert unknown-marker failure into benign message - r=canaltinova
This gtest failure was useful during early development of markers 2.0 schema, to catch all known (at the time) marker types, so they could be tested.

But now that most marker types live locally where they're used, they cannot easily be unit-tested here, so it's easy to miss some of those types. And more of them will be added in the future, potentially causing more failures here.
At the same time, these Profiler tests run along with lots of other tests, which may "naturally" produce some of those marker types, in which case the corresponding schema will be present in output profiles when running Profiler tests.

So we shouldn't make our tests fail anymore when encountering unknown marker types. They may still be verified in other tests related to the code they live in (e.g., an XPCShell test could exercise some Firefox functionality that generates markers when profiling.)
There is still a benign `printf` message, which may be useful during development, but shouldn't appear as a failure (to be fixed) in CI.

Differential Revision: https://phabricator.services.mozilla.com/D100221
2020-12-21 11:51:52 +00:00
Daisuke Akatsuka 636b8c9e9a Bug 1678611: Implement a mechanism to fire page-title-changed event. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D98278
2020-12-18 10:47:34 +00:00
Sylvestre Ledru 20512e8f40 Bug 1674633 - clang-tidy: disable WarnOnConditionVariables for readability-else-after-return r=static-analysis-reviewers,andi DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D100085
2020-12-18 08:29:08 +00:00
Gerald Squelart bd9778b416 Bug 1682840 - Remove timelineOverview from expected display locations in BHR marker schema gtest - r=julienw
This is to match the trivial change in bug 1682349.

The failure was intermittent because we only test the BHR marker schema if that marker was actually used, and there's no easy way to force it during our tests; however while running the full gtest suite, it's possible that a previous test triggered that marker and failed in the non-updated test.

Differential Revision: https://phabricator.services.mozilla.com/D99973
2020-12-17 14:18:58 +00:00
Gregory Mierzwinski 233644d18b Bug 1680560 - Fix webrender on browsertime. r=perftest-reviewers,AlexandruIonescu
Currently the MOZ_WEBRENDER environment variable isn't being for browsertime tests, this patch fixes this isse. This patch also updates the browsertime version to pick up a fix in how the Firefox environment variables are set.

Differential Revision: https://phabricator.services.mozilla.com/D99925
2020-12-17 19:49:43 +00:00
Butkovits Atila f50a07a123 Backed out changeset 765d94836c7f (bug 1680560) for Raptor failures. CLOSED TREE 2020-12-17 19:26:50 +02:00
Gregory Mierzwinski 8c45b5e723 Bug 1680560 - Fix webrender on browsertime. r=perftest-reviewers,AlexandruIonescu
Currently the MOZ_WEBRENDER environment variable isn't being for browsertime tests, this patch fixes this isse. This patch also updates the browsertime version to pick up a fix in how the Firefox environment variables are set.

Differential Revision: https://phabricator.services.mozilla.com/D99925
2020-12-17 15:03:02 +00:00
Tarek Ziadé 4c874857ed Bug 1682829 - Automate a fuzzing smoke test in the CI r=decoder
Adds a smoke test script we can use in the CI to smoke test Firefox prior to
bigger tests.

Differential Revision: https://phabricator.services.mozilla.com/D100008
2020-12-17 13:22:16 +00:00
Daniel Holbert 3d04a42c08 Bug 1682703: [css-grid-3] Remove in-tree masonry draft spec, now that it lives in csswg repo. r=mats DONTBUILD
The draft spec now officially lives at https://drafts.csswg.org/css-grid-3/
and we don't need this in-tree version anymore.

This commit entirely removes the directory layout/docs/css-grid-3/ and also
removes the line for this directory from tools/rewriting/ThirdPartyPaths.txt.

Differential Revision: https://phabricator.services.mozilla.com/D99850
2020-12-16 05:17:36 +00:00
Sylvestre Ledru 21d8dc87dc Bug 1680556 - follow up - ignore two more files
Bug #: 1680556

Differential Revision: https://phabricator.services.mozilla.com/D99842
2020-12-16 01:06:03 +02:00
Kartik Gautam befcb0d4ee Bug 1680556 - Implement --fix for empty lines at end of file. r=sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D99184
2020-12-15 21:50:06 +00:00
Kartik Gautam 5a1125a101 Bug 1675131 - Make whitespace / newline linter also fail for missing empty lines at the end of files. r=sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D98000
2020-12-15 21:49:43 +00:00
Adam Gashlin f949e155a3 Bug 1681574: Remove the old update agent skeleton. r=nalexander
I'm keeping the --enable-update-agent config option and the corresponding
MOZ_UPDATE_AGENT config flag and define, as these should still be useful.

As we never shipped this there is no need to keep anything around to
clean up the scheduled tasks.

Differential Revision: https://phabricator.services.mozilla.com/D99574
2020-12-15 19:00:25 +00:00
championshuttler be0f060c18 Bug 1679073 - Print Version of Pylint in logs.r=sylvestre,linter-reviewers DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D99712
2020-12-15 11:22:59 +00:00
Kartik Gautam f7ffcd09fb Bug 1679758 - Remove trailing empty lines r=sylvestre,marionette-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D99595
2020-12-15 10:34:54 +00:00
James Graham 6b73ec608c Bug 1678663 - Swallow exceptions during shutdown of fix_stacks.py, r=bc
Under Python 3 on Windows we sometimes get an OSError which may be a
race with the process exiting. There's not much we can do about
exceptions during shutdown so just ignore them.

Differential Revision: https://phabricator.services.mozilla.com/D99434
2020-12-14 14:11:10 +00:00
Sylvestre Ledru 8dc5a92f71 Bug 1679058 - codespell follow up - black compatible
Differential Revision: https://phabricator.services.mozilla.com/D99627
2020-12-13 19:57:04 +00:00
Sonia Singla 41dcd0f509 Bug 1679058 - Print Version of Codespell in logs. r=linter-reviewers,championshuttler,sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D99619
2020-12-13 19:50:20 +00:00
Dorel Luca 7320ae982a Backed out changeset f3aaf04fce3b (bug 1679758) for Devtool failures in browser_styleeditor_syncAddProperty.js. CLOSED TREE 2020-12-13 16:38:21 +02:00
Kartik Gautam caf549c200 Bug 1679758 - Remove trailing empty lines r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D99595
2020-12-13 13:28:30 +00:00
Gabriele Svelto 36c296acc1 Bug 1681944 - Remove the remaining instances of crash-stats.mozilla.com and replace them with the .org domain r=willkg DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D99447
2020-12-12 08:41:20 +00:00
Xidorn Quan 5b6e237eec Bug 1681957 - Migrate gecko-fuzz-targets away from rkv 0.10. r=vporof
Differential Revision: https://phabricator.services.mozilla.com/D99453
2020-12-12 08:32:40 +00:00
Gerald Squelart 08f7a701ea Bug 1681738 - GeckoProfiler.GetProfile gtest: Only check JSON for features that are actually active - r=canaltinova
On some platforms, features may be unavailable. E.g.: StackWalk on Mac non-Nightly.

Differential Revision: https://phabricator.services.mozilla.com/D99412
2020-12-11 09:23:42 +00:00
Julien Cristau 01b1e114d8 Bug 1681736 - Set character set when uploading docs. r=sylvestre DONTBUILD
Setting charset to utf-8 seems a safer bet than the default latin1 these
days.

Differential Revision: https://phabricator.services.mozilla.com/D99364
2020-12-10 16:38:38 +00:00
Christian Holler f62be87eec Bug 1681702 - Call exit() in FuzzerHarness to properly deinit ScopedXPCOM. r=truber
Differential Revision: https://phabricator.services.mozilla.com/D99335
2020-12-10 15:55:03 +00:00
Gerald Squelart 062e542f6f Bug 1680995 - Profiler gtests: Use JSONOutputCheck in GeckoProfiler.Markers gtest - r=canaltinova
Consolidate all JSON checks to go through JSONOutputCheck.

Differential Revision: https://phabricator.services.mozilla.com/D98893
2020-12-09 09:10:48 +00:00
Gerald Squelart d336e4f722 Bug 1680995 - Profiler gtests: Use JSONOutputCheck on profiler_get_profile() output - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D98892
2020-12-09 09:10:31 +00:00
Gerald Squelart 275336b264 Bug 1680995 - Profiler gtests: Add some general checks - r=canaltinova
JSONOutputCheck now checks a few more properties, including thread contents, and sub-process profiles.

Differential Revision: https://phabricator.services.mozilla.com/D98891
2020-12-09 09:10:13 +00:00
Gerald Squelart 24b2fcb59f Bug 1680995 - Profiler gtests: JSONOutputCheck now parses profile JSON and its properties - r=canaltinova
JSONOutputCheck used to only check the profile output for the presence of some strings.
Now it parses the output as JSON, and navigates the JSON data to check expected properties, including their types, and values as needed.

Differential Revision: https://phabricator.services.mozilla.com/D98890
2020-12-09 09:09:55 +00:00
Csoregi Natalia 5b6d74bd1d Backed out 4 changesets (bug 1680995) for hazard failures on GeckoProfiler.cpp. CLOSED TREE
Backed out changeset b802e2d38707 (bug 1680995)
Backed out changeset 32045ed29d9e (bug 1680995)
Backed out changeset ff0701c57f86 (bug 1680995)
Backed out changeset 5af1708f901a (bug 1680995)
2020-12-09 10:37:12 +02:00
Barret Rennie e2fce2bed4 Bug 1677000 - Rename IOUtils.writeAtomic{,UTF8} to IOUtils.write{,UTF8} r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D99001
2020-12-09 05:48:46 +00:00
Razvan Maries 9614a08d73 Backed out 7 changesets (bug 1677000) for perma failures on test_ioutils_read_write.html. CLOSED TREE
Backed out changeset 3521334cfc38 (bug 1677000)
Backed out changeset 737f380c2cf2 (bug 1677000)
Backed out changeset 9dba15fdfe1f (bug 1677000)
Backed out changeset b2fa1a061b15 (bug 1677000)
Backed out changeset a5d7845d3c0c (bug 1677000)
Backed out changeset 8e6081b0c07d (bug 1677000)
Backed out changeset 6592577cf0fa (bug 1677000)
2020-12-09 07:34:21 +02:00
Barret Rennie 0dc367a38f Bug 1677000 - Rename IOUtils.writeAtomic{,UTF8} to IOUtils.write{,UTF8} r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D99001
2020-12-09 04:31:40 +00:00
Gerald Squelart 1bd03378a6 Bug 1680995 - Profiler gtests: Use JSONOutputCheck in GeckoProfiler.Markers gtest - r=canaltinova
Consolidate all JSON checks to go through JSONOutputCheck.

Differential Revision: https://phabricator.services.mozilla.com/D98893
2020-12-09 04:14:56 +00:00
Gerald Squelart 7961b8c71d Bug 1680995 - Profiler gtests: Use JSONOutputCheck on profiler_get_profile() output - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D98892
2020-12-09 04:14:43 +00:00
Gerald Squelart 90f7b56bf6 Bug 1680995 - Profiler gtests: Add some general checks - r=canaltinova
JSONOutputCheck now checks a few more properties, including thread contents, and sub-process profiles.

Differential Revision: https://phabricator.services.mozilla.com/D98891
2020-12-09 04:14:20 +00:00
Gerald Squelart fba8be0f11 Bug 1680995 - Profiler gtests: JSONOutputCheck now parses profile JSON and its properties - r=canaltinova
JSONOutputCheck used to only check the profile output for the presence of some strings.
Now it parses the output as JSON, and navigates the JSON data to check expected properties, including their types, and values as needed.

Differential Revision: https://phabricator.services.mozilla.com/D98890
2020-12-09 04:14:02 +00:00
Simon Giesecke 1c53236b70 Bug 1679272 - Include ScopeExit.h exactly where used. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D98888
2020-12-07 14:25:59 +00:00
Sylvestre Ledru c4d12fb790 Bug 1680635 - clang-format: to help with debugging, show the version used in the CI r=linter-reviewers,andi DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D98812
2020-12-07 10:08:32 +00:00
Gregory Mierzwinski 75e5d38691 Bug 1677770 - Pass the mozperftest manifest path to the verifier. r=tarek
Differential Revision: https://phabricator.services.mozilla.com/D97335
2020-12-04 15:04:05 +00:00
Simon Giesecke 91331998d6 Bug 1679763 - Explicitly instantiate often-used profiler templates. r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D98187
2020-12-04 14:21:57 +00:00
Kershaw Chang 628b4518df Bug 1667743 - Remove unused esni code r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D98023
2020-12-03 12:17:12 +00:00
Bogdan Tara 520f54fb37 Backed out changeset 117da9de7f66 (bug 1667743) for handshakeSucceeded related bustage CLOSED TREE 2020-12-03 03:44:59 +02:00
Kershaw Chang 14d936a94d Bug 1667743 - Remove unused esni code r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D98023
2020-12-02 23:18:38 +00:00
Bogdan Tara 24ca702e18 Backed out changeset fdd4de984fd3 (bug 1679763) for profiler related bustage CLOSED TREE 2020-12-02 21:10:06 +02:00
Simon Giesecke e74ea6985a Bug 1679763 - Explicitly instantiate often-used profiler templates. r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D98187
2020-12-02 17:00:06 +00:00
Gregory Mierzwinski e9584941e4 Bug 1638365 - Use webdriver navigation for pageload tests. r=perftest-reviewers,Bebe,AlexandruIonescu
This patch upgrade browsertime to v10, and enables webdriver-based navigation in browsertime tests.

Differential Revision: https://phabricator.services.mozilla.com/D95425
2020-12-02 17:33:30 +00:00
Mike Hommey 14c1084f72 Bug 1679938 - Don't recurse the build into mfbt for projects that don't need it. r=firefox-build-system-reviewers,mhentges
While all toolkit and js-based projects make use of mfbt, some others,
like tools/crashreporter and tools/update-packaging, don't.

So instead of including mfbt from the top-level directory, include it
from the relevant project top-level mozbuilds.

This allows to remove the dependency on mfbt files in the hash for the
minidump-stackwalk and mar-tools toolchains.

Differential Revision: https://phabricator.services.mozilla.com/D98378
2020-12-01 23:52:03 +00:00
Christian Holler 894124e3cf Bug 1677049 - Skip problematic mochitest-bc tests in TSan. r=Gankro,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D98365
2020-12-01 20:21:20 +00:00
Andrew Osmond 093d7f3e0a Bug 1678482 - Add a WebRender test for the downloadable blocklist. r=jrmuizel,robwu
Differential Revision: https://phabricator.services.mozilla.com/D97704
2020-11-27 14:28:27 +00:00
Gerald Squelart 2893c11987 Bug 1676079 - For consistency and clarity, add Marker suffix to all marker types - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D98123
2020-11-30 22:52:44 +00:00
Gerald Squelart b9191bb2ce Bug 1646613 - Rename profiler overhead variables to include their true unit - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D97993
2020-11-30 10:44:13 +00:00
Zac Svoboda afc3515f1c Bug 1679631 - documentation: Upgrade the markdown dependency r=sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D98107
2020-11-28 17:56:16 +00:00
Sylvestre Ledru 5079cc5b3f Bug 1588710 - Do not fail on stack protector on some asm chromium & breakpad sandboxing code r=mhentges
caused:
[task 2020-11-05T10:14:26.012Z] 10:14:26     INFO -  In file included from Unified_cpp_sandbox_linux2.cpp:137:
[task 2020-11-05T10:14:26.012Z] 10:14:26    ERROR -  /builds/worker/checkouts/gecko/security/sandbox/chromium/sandbox/linux/seccomp-bpf/syscall.cc:369:3: error: Unable to protect inline asm that clobbers stack pointer against stack clash [-Werror,-Wstack-protector]
[task 2020-11-05T10:14:26.012Z] 10:14:26     INFO -    asm volatile(
[task 2020-11-05T10:14:26.013Z] 10:14:26     INFO -    ^
[task 2020-11-05T10:14:26.013Z] 10:14:26     INFO -  1 error generated.

Differential Revision: https://phabricator.services.mozilla.com/D97567
2020-11-27 10:14:01 +00:00
Zac Svoboda 2c9c8170d3 Bug 1679396 - Upgrade Sphinx and update requirements r=sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D97994
2020-11-27 08:54:33 +00:00
Renovate Bot b1cecbf72f Bug 1679065 - Update dependency pylint to v2.6.0 r=linter-reviewers,marco DONTBUILD
Reported here: https://github.com/sylvestre/gecko-dev/pull/207/files

Differential Revision: https://phabricator.services.mozilla.com/D97896
2020-11-23 21:22:30 +00:00
championshuttler 41d3960fca Bug 1679056 - Update to flake8 3.8.4.r=sylvestre
PR can be found here:
https://github.com/sylvestre/gecko-dev/pull/165

./mach lint -l flake8

Differential Revision: https://phabricator.services.mozilla.com/D97895
2020-11-23 20:27:21 +00:00
Renovate Bot 4a5fc87a13 Bug 1679053 - Update dependency codespell to v2 r=linter-reviewers,championshuttler,marco DONTBUILD
PR can be found here:
https://github.com/sylvestre/gecko-dev/pull/309

Differential Revision: https://phabricator.services.mozilla.com/D97892
2020-11-23 20:19:36 +00:00
Sylvestre Ledru 6cc0abebf9 Bug 1679053 - Fix a typo in the doc r=linter-reviewers,championshuttler,marco DONTBUILD
Fix with:
$ ./mach lint -l codespell --fix

Differential Revision: https://phabricator.services.mozilla.com/D97891
2020-11-23 20:19:28 +00:00
Renovate Bot 97196a2329 Bug 1679054 - Update dependency sphinx-copybutton to v0.3.1 r=firefox-source-docs-reviewers,championshuttler DONTBUILD
Reported here:
https://github.com/sylvestre/gecko-dev/pull/227

Differential Revision: https://phabricator.services.mozilla.com/D97893
2020-11-23 20:04:24 +00:00
Simon Giesecke dd80614fa0 Bug 1678062 - Remove unnecessary includes. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D97467

Depends on D96561
2020-11-23 16:12:02 +00:00
Simon Giesecke 2499964dc8 Bug 1676361 - Clean up profiler includes. r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D96539

Depends on D96538
2020-11-23 16:09:13 +00:00
Simon Giesecke ae75be244a Bug 1677466 - Split Endpoint.h and ProtocolMessageUtils.h from ProtocolUtils.h. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D93568

Depends on D93567
2020-11-23 16:06:42 +00:00
Simon Giesecke 971b645fe3 Bug 1660470 - Add missing include directives/forward declarations. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D87865
2020-11-23 16:21:38 +00:00
smolnar ecaaa56bed Bug 1641000 - Fix linting error on buffer.rst r=lint-fix 2020-11-20 21:38:21 +02:00
Greg Tatum dbae6744d9 Bug 1641000 - Start documenting the Gecko Profiler; r=gerald
This patch represents joint authoriship by Greg Tatum and Gerald Squelart.
This is a work in progress start to documenting the Gecko Profiler. We
collaborated on this on GitHub.

https://github.com/gregtatum/gecko-dev/tree/profiler-docs/tools/profiler/docs

Differential Revision: https://phabricator.services.mozilla.com/D97655
2020-11-20 18:55:26 +00:00
Florian Quèze 0d164d3a9f Bug 1674476 - ChromeUtils.addProfilerMarker should support capturing a stack or setting the category, r=gerald,gregtatum.
Differential Revision: https://phabricator.services.mozilla.com/D95406
2020-11-20 15:41:16 +00:00
Gerald Squelart a56d00ddb7 Bug 1678159 - Move WritePropertyTime to SpliceableJSONWriter::TimeProperty - r=gregtatum
TimeStamps in markers must now be streamed through `SpliceableJSONWriter::TimeProperty(name, timestamp)`.
This is consistent with all other JSON-writing functions being in `SpliceableJSONWriter` (and base class `JSONWriter`).

Depends on D97556

Differential Revision: https://phabricator.services.mozilla.com/D97557
2020-11-20 02:23:08 +00:00
Gerald Squelart 7c60972925 Bug 1678181 - Output chartLabel and tableLabel in marker schema - r=gregtatum
Depends on D97555

Differential Revision: https://phabricator.services.mozilla.com/D97556
2020-11-20 02:19:57 +00:00
Gerald Squelart 202a726127 Bug 1678181 - Add thorough tests for custom marker definitions - r=gregtatum
This adds tests for custom marker types, exercizing most streaming and schema functions.

Depends on D96971

Differential Revision: https://phabricator.services.mozilla.com/D97555
2020-11-20 02:18:53 +00:00
Kartikaya Gupta 4e01a769dc Bug 1678466 - Speed up converter.py when processing a big set of changes. r=jrmuizel
If a changeset has multiple parents, and those parents get pruned away
such that the changeset ends up with identical parents, we now collapse
those parents into a single parent. This avoids unnecessary recursion
and repetition of work. Generally this is only a problem when processing
a large number of changesets, as the recursion will be exponential with
the depth of the tree, and small numbers of changesets generally have
shallow trees.

Differential Revision: https://phabricator.services.mozilla.com/D97683
2020-11-19 22:26:35 +00:00
Sylvestre Ledru a6033eb204 Bug 1678070 - mozlint/license: remove .hg from the exclude list r#linter-reviewers, hsivonen r=linter-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D97484
2020-11-19 15:57:15 +00:00
Johan Lorenzo 43412d8254 Bug 1676130 - part 2: Let `mach try release` overwrite the content of build/defines.sh r=jcristau
Differential Revision: https://phabricator.services.mozilla.com/D96410
2020-11-19 13:28:58 +00:00
Gerald Squelart 11a06b90fa Bug 1671403 - Also prevent re-entrant operations when a mutex is locked in the ProfilerParent - r=canaltinova
Expand `profiler_is_locked_on_current_thread()` to also return true if the ProfileBufferGlobalController mutex is locked on the current thread.
This will prevent some profiler-re-entrant operations (like native allocation markers) from running.

In particular, this removes potential deadlocks similar to the one found in bug 1671403:
- SamplerThread: In the sampling loop, lock the main profiler mutex, run a local update, which attempts to lock the ProfileBufferGlobalController mutex.
- ProfilerChild thread: While processing an IPC message with an update, lock the ProfileBufferGlobalController mutex, then resolve the update, which records a native allocation with a backtrace that attempts to lock the main profiler mutex.
With this patch, the native allocation won't record a marker while the ProfileBufferGlobalController mutex is locked.

Differential Revision: https://phabricator.services.mozilla.com/D96970
2020-11-19 11:48:14 +00:00
Gerald Squelart d225beb0eb Bug 1671403 - Also prevent re-entrant operations when the ProfilerChild mutex is locked on the current thread - r=canaltinova
Expand `profiler_is_locked_on_current_thread()` to also return true if the ProfilerChild mutex is locked on the current thread.
This will prevent some profiler-re-entrant operations (like native allocation markers) from running.

In particular, this removes the potential deadlock found in bug 1671403:
- SamplerThread: In the sampling loop, lock the main profiler mutex, run a ProfilerChild update, which attempts to lock the ProfilerChild mutex.
- ProfilerChild thread: While processing an IPC message with an update, lock the ProfilerChild mutex, then resolve the update, which records a native allocation with a backtrace that attempts to lock the main profiler mutex.
With this patch, the native allocation won't record a marker while the ProfilerChild mutex is locked.

Differential Revision: https://phabricator.services.mozilla.com/D96969
2020-11-19 11:47:46 +00:00
Tim Nguyen 73e2871fa8 Bug 1525737 - Remove layout/xul/grid directory. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D53296
2020-11-17 01:20:33 +00:00
Markus Stange 8b72e2eb8d Bug 1677868 - Rename "Java Main Thread" to "AndroidUI (Java)" in the profiler. r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D97378
2020-11-18 23:15:27 +00:00
Gerald Squelart c27bc89bad Bug 1666566 - Bump Gecko profile version to 22, to use marker schema - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96684
2020-11-18 21:57:15 +00:00
Gerald Squelart b3314a1582 Bug 1675409 - Removed now-unused ProfilerMarkerPayload and all dependencies - r=gregtatum,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D96054
2020-11-18 21:56:57 +00:00
Gerald Squelart a10f7166db Bug 1675409 - Migrated TracingMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96053
2020-11-18 21:55:51 +00:00
Gerald Squelart cc0abcfaee Bug 1675409 - Migrated TextMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96052
2020-11-18 21:54:13 +00:00
Gerald Squelart 8ed348d0c7 Bug 1675409 - Migrated UserTimingMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96051
2020-11-18 21:53:09 +00:00
Gerald Squelart bfc0fb9f6d Bug 1675409 - Migrated IPCMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96050
2020-11-18 21:52:41 +00:00
Gerald Squelart 1a240b02aa Bug 1675409 - Migrated NativeAllocationMarkerPayload to Markers 2.0 API - r=gregtatum
Because it's easy to send markers to the main thread, we don't need to store the main thread id in memory_hooks functions and objects.

Differential Revision: https://phabricator.services.mozilla.com/D96049
2020-11-18 21:52:07 +00:00
Gerald Squelart 01b81bd553 Bug 1675409 - Migrated JsAllocationMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96048
2020-11-18 21:51:29 +00:00
Gerald Squelart 423c352bcc Bug 1675409 - Migrated GC markers to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96046
2020-11-18 21:50:43 +00:00
Gerald Squelart 42eb92f290 Bug 1675409 - Migrated ScreenshotPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96044
2020-11-18 21:50:15 +00:00
Gerald Squelart c3d6e979a5 Bug 1675409 - Migrated MediaSampleMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96043
2020-11-18 21:49:52 +00:00
Gerald Squelart fea07678c1 Bug 1675409 - Migrated ContentBuildPayload and ContentFullPaintPayload to Markers 2.0 API - r=gregtatum
In this case, the same marker type "CONTENT_FULL_PAINT_TIME" is used in separate places, so it makes sense to put the marker type definition in a common location.

Differential Revision: https://phabricator.services.mozilla.com/D96042
2020-11-18 21:49:50 +00:00
Gerald Squelart 6e65d94961 Bug 1675409 - Migrated NetworkMarkerPayload to Markers 2.0 API - r=gregtatum,necko-reviewers,julienw
While migrating, profiler_add_network_marker was optimized to avoid some string allocations.

Differential Revision: https://phabricator.services.mozilla.com/D96040
2020-11-18 21:48:17 +00:00
Gerald Squelart 4d9cfb4113 Bug 1675409 - Migrated LogMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96039
2020-11-18 21:47:24 +00:00
Gerald Squelart 46fed8e10f Bug 1675409 - Migrated LongTaskMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96038
2020-11-18 21:46:56 +00:00
Gerald Squelart 4d44faceb9 Bug 1675409 - Migrated StyleMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96037
2020-11-18 21:46:23 +00:00
Gerald Squelart 237baa429c Bug 1675409 - Migrated HangMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96036
2020-11-18 21:45:54 +00:00
Gerald Squelart 3a35222f5f Bug 1675409 - Migrated VsyncMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96035
2020-11-18 21:45:21 +00:00
Gerald Squelart e172777c88 Bug 1675409 - Migrated LayerTranslationMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96033
2020-11-18 21:44:53 +00:00
Gerald Squelart 3c5d417916 Bug 1675409 - Migrated PrefMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96031
2020-11-18 21:44:18 +00:00
Gerald Squelart 67510d8def Bug 1675409 - Migrated (media) Budget to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96030
2020-11-18 21:43:50 +00:00
Razvan Maries efd002addd Backed out 2 changesets (bug 1677396, bug 1677868) for perma failures on browser_startup_syncIPC.js. CLOSED TREE
Backed out changeset e43e56bfbfc6 (bug 1677396)
Backed out changeset 0ecfa354c74c (bug 1677868)
2020-11-19 01:03:25 +02:00
Markus Stange a121e8f0c7 Bug 1677868 - Rename "Java Main Thread" to "AndroidUI (Java)" in the profiler. r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D97378
2020-11-18 21:01:46 +00:00
Razvan Maries 244eb9e36c Backed out changeset 2fd8d2e0ae94 (bug 1666566) as per Gerald's request. CLOSED TREE 2020-11-18 22:05:59 +02:00
Razvan Maries b7eeb731df Backed out 23 changesets (bug 1675409) for build bustages on Preferences.cpp. CLOSED TREE
Backed out changeset c1a131a55767 (bug 1675409)
Backed out changeset 47d210802a5d (bug 1675409)
Backed out changeset e8ebb1c58d30 (bug 1675409)
Backed out changeset 69a1e9aeff2a (bug 1675409)
Backed out changeset 68f330b387a8 (bug 1675409)
Backed out changeset e4750d9ef5a1 (bug 1675409)
Backed out changeset bb6bb71e5ab3 (bug 1675409)
Backed out changeset 988d7f4716df (bug 1675409)
Backed out changeset ca41382e891c (bug 1675409)
Backed out changeset 90f3fbbbbeda (bug 1675409)
Backed out changeset 9b109d61a6f6 (bug 1675409)
Backed out changeset 3dd66abfdaa2 (bug 1675409)
Backed out changeset 44181df5f0db (bug 1675409)
Backed out changeset bb2603d947fc (bug 1675409)
Backed out changeset 97055cf20a56 (bug 1675409)
Backed out changeset f88fcf09de0d (bug 1675409)
Backed out changeset 7963e1c49786 (bug 1675409)
Backed out changeset 4c379c1061c3 (bug 1675409)
Backed out changeset b8be8ae7da63 (bug 1675409)
Backed out changeset 0b90aa89421e (bug 1675409)
Backed out changeset c10fb46467c9 (bug 1675409)
Backed out changeset 894ac233b290 (bug 1675409)
Backed out changeset 075d1d8e34c2 (bug 1675409)
2020-11-18 20:06:28 +02:00
Gregory Mierzwinski d85fb6ec70 Bug 1677896 - Remove license header from raptor benchmark script. r=perftest-reviewers,tarek
Differential Revision: https://phabricator.services.mozilla.com/D97434
2020-11-18 15:34:19 +00:00
Sylvestre Ledru bebb9f9181 Bug 1519636 - Reformat with clang-format-11 to the Google coding style r=andi,sg,geckoview-reviewers,snorp
It is bringing some minor changes

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D90795
2020-11-18 09:05:59 +00:00
Gerald Squelart f776631bec Bug 1666566 - Bump Gecko profile version to 22, to use marker schema - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96684
2020-11-17 22:26:43 +00:00
Gerald Squelart ced008cc9f Bug 1675409 - Removed now-unused ProfilerMarkerPayload and all dependencies - r=gregtatum,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D96054
2020-11-17 22:26:20 +00:00
Gerald Squelart 9506ea6302 Bug 1675409 - Migrated TracingMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96053
2020-11-17 22:25:06 +00:00
Gerald Squelart 786dd07114 Bug 1675409 - Migrated TextMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96052
2020-11-17 22:23:38 +00:00
Gerald Squelart 2ab89b23a6 Bug 1675409 - Migrated UserTimingMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96051
2020-11-17 22:22:34 +00:00
Gerald Squelart f17a3dc5aa Bug 1675409 - Migrated IPCMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96050
2020-11-17 22:22:01 +00:00
Gerald Squelart c4e2019021 Bug 1675409 - Migrated NativeAllocationMarkerPayload to Markers 2.0 API - r=gregtatum
Because it's easy to send markers to the main thread, we don't need to store the main thread id in memory_hooks functions and objects.

Differential Revision: https://phabricator.services.mozilla.com/D96049
2020-11-17 22:21:28 +00:00
Gerald Squelart 0a2de73fcb Bug 1675409 - Migrated JsAllocationMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96048
2020-11-17 22:20:50 +00:00
Gerald Squelart a26b5d751f Bug 1675409 - Migrated GC markers to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96046
2020-11-17 22:20:04 +00:00
Gerald Squelart 0231b34164 Bug 1675409 - Migrated ScreenshotPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96044
2020-11-17 22:19:34 +00:00
Gerald Squelart 6462c5154d Bug 1675409 - Migrated MediaSampleMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96043
2020-11-17 22:19:06 +00:00
Gerald Squelart 586ccbf033 Bug 1675409 - Migrated ContentBuildPayload and ContentFullPaintPayload to Markers 2.0 API - r=gregtatum
In this case, the same marker type "CONTENT_FULL_PAINT_TIME" is used in separate places, so it makes sense to put the marker type definition in a common location.

Differential Revision: https://phabricator.services.mozilla.com/D96042
2020-11-17 22:18:58 +00:00
Gerald Squelart 91baec6f52 Bug 1675409 - Migrated NetworkMarkerPayload to Markers 2.0 API - r=gregtatum,necko-reviewers,julienw
While migrating, profiler_add_network_marker was optimized to avoid some string allocations.

Differential Revision: https://phabricator.services.mozilla.com/D96040
2020-11-17 22:17:40 +00:00
Gerald Squelart c76eb1b69b Bug 1675409 - Migrated LogMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96039
2020-11-17 22:16:49 +00:00
Gerald Squelart 067cad5579 Bug 1675409 - Migrated LongTaskMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96038
2020-11-17 22:16:16 +00:00
Gerald Squelart 4fca116961 Bug 1675409 - Migrated StyleMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96037
2020-11-17 22:15:38 +00:00
Gerald Squelart 986eaf5787 Bug 1675409 - Migrated HangMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96036
2020-11-17 22:15:10 +00:00
Gerald Squelart 5e6c496f92 Bug 1675409 - Migrated VsyncMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96035
2020-11-17 22:14:37 +00:00
Gerald Squelart 01c3f79273 Bug 1675409 - Migrated LayerTranslationMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96033
2020-11-17 22:14:14 +00:00
Gerald Squelart 7ad6e5d65a Bug 1675409 - Migrated PrefMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96031
2020-11-17 22:13:28 +00:00
Gerald Squelart dce087cdef Bug 1675409 - Migrated (media) Budget to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96030
2020-11-17 22:13:05 +00:00
Sylvestre Ledru 05240c5ae9 Bug 1677430 - mozlint/license: Handle the error when cannot open a file r=linter-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D97135
2020-11-17 20:10:52 +00:00
Mihai Alexandru Michis c0d25b01b2 Backed out 24 changesets (bug 1666566, bug 1675409) for causing hazard failures in profiler/core/platform.cpp
CLOSED TREE

Backed out changeset 4d8af8533fd4 (bug 1666566)
Backed out changeset f031a3a8a20f (bug 1675409)
Backed out changeset 2b7e1a031921 (bug 1675409)
Backed out changeset bda5a24b2d0a (bug 1675409)
Backed out changeset 4282e2284314 (bug 1675409)
Backed out changeset 0637f1b26e9f (bug 1675409)
Backed out changeset 67ae04c8f607 (bug 1675409)
Backed out changeset 6c7b3f3618ef (bug 1675409)
Backed out changeset 2f325c22d169 (bug 1675409)
Backed out changeset 1e48ff70ad8f (bug 1675409)
Backed out changeset 1dfc32d6871d (bug 1675409)
Backed out changeset 4f1f218a777b (bug 1675409)
Backed out changeset e6ac8722b38e (bug 1675409)
Backed out changeset cf132e15fb57 (bug 1675409)
Backed out changeset a126e6b00ba9 (bug 1675409)
Backed out changeset fbc7fbb04f33 (bug 1675409)
Backed out changeset 554c69681474 (bug 1675409)
Backed out changeset 44d0521c701f (bug 1675409)
Backed out changeset 04653dfe4720 (bug 1675409)
Backed out changeset 41ca2c043a00 (bug 1675409)
Backed out changeset 264ae4c805d4 (bug 1675409)
Backed out changeset 5f3bbdac0d52 (bug 1675409)
Backed out changeset 11311c11a6e8 (bug 1675409)
Backed out changeset 0355fbc44baf (bug 1675409)
2020-11-17 19:31:28 +02:00
Andi-Bogdan Postelnicu e9fbba867c Bug 1666550 - Update `clang-tools` to `clang-11`. r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D97137
2020-11-17 15:04:14 +00:00
Gerald Squelart c9fc76790c Bug 1666566 - Bump Gecko profile version to 22, to use marker schema - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96684
2020-11-17 11:41:04 +00:00
Gerald Squelart f8c24dd6a4 Bug 1675409 - Removed now-unused ProfilerMarkerPayload and all dependencies - r=gregtatum,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D96054
2020-11-17 11:40:46 +00:00
Gerald Squelart e89990aa2c Bug 1675409 - Migrated TracingMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96053
2020-11-17 11:39:42 +00:00
Gerald Squelart 7e40dbb3c5 Bug 1675409 - Migrated TextMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96052
2020-11-17 11:38:06 +00:00
Gerald Squelart c152b9befc Bug 1675409 - Migrated UserTimingMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96051
2020-11-17 11:37:08 +00:00
Gerald Squelart 878bf41da1 Bug 1675409 - Migrated IPCMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96050
2020-11-17 11:36:32 +00:00
Gerald Squelart 3b2fc2777a Bug 1675409 - Migrated NativeAllocationMarkerPayload to Markers 2.0 API - r=gregtatum
Because it's easy to send markers to the main thread, we don't need to store the main thread id in memory_hooks functions and objects.

Differential Revision: https://phabricator.services.mozilla.com/D96049
2020-11-17 11:36:04 +00:00
Gerald Squelart b96f5eccc0 Bug 1675409 - Migrated JsAllocationMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96048
2020-11-17 11:35:23 +00:00
Gerald Squelart a2779e6b9f Bug 1675409 - Migrated GC markers to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96046
2020-11-17 11:34:42 +00:00
Gerald Squelart 2cc4ab9f43 Bug 1675409 - Migrated ScreenshotPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96044
2020-11-17 11:34:16 +00:00
Gerald Squelart 4075cd5ed6 Bug 1675409 - Migrated MediaSampleMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96043
2020-11-17 11:33:48 +00:00
Gerald Squelart 8846b82e18 Bug 1675409 - Migrated ContentBuildPayload and ContentFullPaintPayload to Markers 2.0 API - r=gregtatum
In this case, the same marker type "CONTENT_FULL_PAINT_TIME" is used in separate places, so it makes sense to put the marker type definition in a common location.

Differential Revision: https://phabricator.services.mozilla.com/D96042
2020-11-17 11:33:31 +00:00
Gerald Squelart 6ea0ba8e9d Bug 1675409 - Migrated NetworkMarkerPayload to Markers 2.0 API - r=gregtatum,necko-reviewers,julienw
While migrating, profiler_add_network_marker was optimized to avoid some string allocations.

Differential Revision: https://phabricator.services.mozilla.com/D96040
2020-11-17 11:57:23 +00:00
Gerald Squelart 374448fe41 Bug 1675409 - Migrated LogMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96039
2020-11-17 11:31:37 +00:00
Gerald Squelart ee94544ace Bug 1675409 - Migrated LongTaskMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96038
2020-11-17 11:31:04 +00:00
Gerald Squelart 667f0705c6 Bug 1675409 - Migrated StyleMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96037
2020-11-17 11:30:31 +00:00
Gerald Squelart 4a50146cab Bug 1675409 - Migrated HangMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96036
2020-11-17 11:30:03 +00:00
Gerald Squelart 944e6e9af8 Bug 1675409 - Migrated VsyncMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96035
2020-11-17 12:05:30 +00:00
Gerald Squelart c3a0afcec3 Bug 1675409 - Migrated LayerTranslationMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96033
2020-11-17 11:28:59 +00:00
Gerald Squelart d94bc45ce1 Bug 1675409 - Migrated PrefMarkerPayload to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96031
2020-11-17 11:28:18 +00:00
Gerald Squelart 2d090a48b1 Bug 1675409 - Migrated (media) Budget to Markers 2.0 API - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D96030
2020-11-17 11:27:55 +00:00
Sylvestre Ledru 38008eb1cd Bug 1676514 - Add --fix to mozlint/clippy
I will add a test once this feature is considered as stable upstream

Differential Revision: https://phabricator.services.mozilla.com/D96634
2020-11-17 12:03:33 +00:00
Sylvestre Ledru b277393f41 Bug 1562642 - mozlint/license: Simplify the MIT license detection r=mhoye
Differential Revision: https://phabricator.services.mozilla.com/D97209
2020-11-17 02:00:50 +00:00
Sylvestre Ledru 2b401f7e24 Bug 1677432 - mozlint/license: be more precriptive in the tests detection r=linter-reviewers,ahal
We were not managing /testing/ because /test was catching it

Differential Revision: https://phabricator.services.mozilla.com/D97136
2020-11-17 02:22:39 +00:00
Csoregi Natalia d5d9829015 Backed out changeset 59fc06b10800 (bug 1677432) for linting failures. CLOSED TREE 2020-11-17 01:59:23 +02:00
Sylvestre Ledru d44ee5d99e Bug 1677432 - mozlint/license: be more precriptive in the tests detection r=linter-reviewers,ahal
We were not managing /testing/ because /test was catching it

Differential Revision: https://phabricator.services.mozilla.com/D97136
2020-11-16 22:10:40 +00:00
Sylvestre Ledru e2b0a11bac Bug 1562642 - mozlint/license: Unify some license pattern r=tarek DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D97142
2020-11-16 12:58:52 +00:00
Ben Hearsum 2cebc89f5f Bug 1648832: Make updater/Balrog support AArch64 macOS. r=aki
Differential Revision: https://phabricator.services.mozilla.com/D97028
2020-11-13 18:41:56 +00:00
alwu 7e66621a55 Bug 1676502 - part1 : move remaining sound indicator browser tests to 'browser/base/content/test/tabMediaIndicator/'. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D96629
2020-11-13 00:30:18 +00:00
Brindusan Cristian 0f710bf462 Backed out changeset 2052e35c9932 (bug 1638365) for performance regressions as requested by alexandrui on irc. CLOSED TREE 2020-11-12 14:31:20 +02:00
Mike Hommey 56c565bb77 Bug 1675740 - Add a script that can unify crashreporter symbols. r=firefox-build-system-reviewers,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D96690
2020-11-12 04:35:48 +00:00
Mike Hommey a251e85356 Bug 1675740 - Add a script that can unify test artifacts. r=firefox-build-system-reviewers,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D96689
2020-11-12 04:35:48 +00:00
Kris Maglione 7ae9faa46f Bug 1651774: Update mozilla/use-services rule for native Services implementation. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D93858
2020-11-06 18:58:33 +00:00
Julian Descottes c5072b6139 Bug 1676139 - [devtools] Update devtools presets to include fission jobs r=nchevobbe
The DevTools mochitests on Fission platforms have been promoted to tier 1.

This changeset updates our try presets to increase our coverage of fission platforms.

Differential Revision: https://phabricator.services.mozilla.com/D96407
2020-11-10 09:42:21 +00:00
Barret Rennie ff0f570af6 Bug 1675843 - Direct people to fzf releases instead of fzf-bin releases r=ahal
The fzf-bin repository is now archived and no longer receives new releases.
Releases are published directly to the fzf repository instead.

Differential Revision: https://phabricator.services.mozilla.com/D96238
2020-11-09 21:48:39 +00:00
Andrew Halberstadt 6fd6e30f98 Bug 1676204 - [tryselect] Fix broken try pushes when passing in paths to test manifests, r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D96450
2020-11-09 18:52:16 +00:00
Gregory Mierzwinski 137a7a6aa8 Bug 1675806 - Fix perfdocs unittest on Windows. r=perftest-reviewers,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D96425
2020-11-09 15:15:27 +00:00
Mike Hommey e7bd434ff1 Bug 1675384 - Resurrect mac unification code. r=firefox-build-system-reviewers,mhentges
This adds back part of the code that was removed in bug 1339182,
reformats it with black, adjusts it to make flake8 happy, and converts
it to python 3.

This also adjusts the script after bug 1534003, which changed the
about:buildconfig page title.

Differential Revision: https://phabricator.services.mozilla.com/D95977
2020-11-06 08:58:08 +00:00
Ricky Stewart 7860c29e4c Bug 1674923 - Pass down `virtualenv_manager` from `mach lint` down to linters r=ahal
Before, on Windows, this resulted in installing the package in the parent environment (not the `virtualenv`). We fix this by passing down the `virtualenv_manager` so linters can install packages they need using that object's helper methods.

Differential Revision: https://phabricator.services.mozilla.com/D95738
2020-11-06 20:51:16 +00:00
alexandru.ionescu 5f40a745a8 Bug 1611084 - Add unit tests for perfdocs linter. r=perftest-reviewers,AlexandruIonescu
This patch sets up unit tests for the perfdocs linter and adds a few simple tests for it which will be expanded on in future patches.

Differential Revision: https://phabricator.services.mozilla.com/D75480
2020-11-06 15:43:09 +00:00
Gerald Squelart e7313b8f47 Bug 1674737 - Use SpliceableJSONWriter::UniqueStringElement in DeserializeAfterKindAndStream - r=gregtatum
Unique strings are used to encode all markers' 'name' field, SpliceableJSONWriter::UniqueStringElement can be used for that (instead of a caller-provided callback, which was necessary before UniqueJSONStrings was de-duplicated).

Differential Revision: https://phabricator.services.mozilla.com/D95513
2020-11-06 11:29:11 +00:00
Gerald Squelart 7e48b598df Bug 1674737 - Make SpliceableJSONWriter optionally point at a UniqueJSONStrings, with pass-through functions - r=gregtatum
Some markers (e.g., Screenshot) use unique strings in their data.

The UniqueJSONStrings used during streaming is attached to the SpliceableJSONWriter, and StreamJSONMarkerData can use pass-through functions UniqueStringProperty() and UniqueStringElement().

Differential Revision: https://phabricator.services.mozilla.com/D95512
2020-11-06 11:28:42 +00:00
Gerald Squelart 5f4f178337 Bug 1674737 - Use SpliceableJSONWriter instead of JSONWriter when streaming markers - r=gregtatum
Some markers (e.g., GC major/minor/slice) need to splice JSON strings in their data.
So now, instead of JSONWriter, StreamJSONMarkerData functions will be given a mozilla::baseprofiler::SpliceableJSONWriter.

Differential Revision: https://phabricator.services.mozilla.com/D95511
2020-11-06 11:28:33 +00:00
Gabriele Svelto e452abab1c Bug 1655476 - Scrape symbols for Windows graphics drivers r=marco DONTBUILD
This adds symbol servers from Intel, AMD and NVidia. Unfortunately not all
symbols are available there, we still have to manually download those that
aren't.

Differential Revision: https://phabricator.services.mozilla.com/D95854
2020-11-06 11:02:03 +00:00
Gabriele Svelto 4b85e11596 Bug 1675263 - Refactor the scripts used to scrape Microsoft and Apple system symbols r=marco DONTBUILD
This patch changes a few different things:
- The Docker image used for both scrapers are now based off of our standard
  Debian 10 image instead of an old Ubuntu one
- Both images were changed to make it easy to work with them when an
  interactive task is used
- The python packages used by the scripts had their versions pinned and
  cryptographic hashes have been recorded so that they can be verified before
  running the task
- The dump_syms version used on Windows was bumped to include fixes that allow
  us to scrape public symbols from DLLs and EXEs that have no PDB file available
- The maximum open file limit of the Window scraper was bumped up to cope with
  runs where we gather plenty of symbols in one go
- Similarly the maximum number of symultaneous connections to a single symbol
  server has been limited to 4 to avoid being throttled
- The macOS Python tools were modified to work with Python 3

Differential Revision: https://phabricator.services.mozilla.com/D95853
2020-11-06 11:02:25 +00:00
Barret Rennie ac6be32a0a Bug 1671035 - Add a WebIDL backed path manipulation utility r=Gijs,nika
PathUtils is a path manipulation component to IOUtils, which is based on
simplified file I/O. This work is part of the larger goal of removing
osfile.jsm et al., ospath.jsm et al., and the entire OS.* namespace, especially
from the startup path.

No equivalent was provided for OS.Path.fromFileURI because it is unused.

Differential Revision: https://phabricator.services.mozilla.com/D95105
2020-11-05 18:08:38 +00:00
Tom Ritter 5ab182e7e6 Bug 1674182 - Support a regex filter for./mach try auto r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D95186
2020-11-05 17:53:31 +00:00
Greg Tatum 3986877f46 Bug 1674219 - Provide the basic documentation for Talos; r=sparky,perftest-reviewers
This patch adds the basic docs for Talos using the PerfDocs system. It
includes a high-level overview of what Talos is, and how to interact with
it.

Differential Revision: https://phabricator.services.mozilla.com/D95604
2020-11-05 15:42:35 +00:00
Gregory Mierzwinski 5c2926e336 Bug 1638365 - Use webdriver navigation for pageload tests. r=perftest-reviewers,Bebe
This patch upgrade browsertime to v10, enables webdriver-based navigation in browsertime tests, and also disables the Firefox WindowRecorder for a fairer comparison between Chrome and Firefox.

Differential Revision: https://phabricator.services.mozilla.com/D95425
2020-11-05 14:27:56 +00:00
alwu 31f03aa534 Bug 1674845 - part3 : create 'mochitest' subfolder for autoplay related plain mochitests. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D95880
2020-11-05 04:50:13 +00:00
alwu 35d0af6eef Bug 1674845 - part2 : create 'autoplay' subfolder and move related files. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D95879
2020-11-05 04:50:11 +00:00
Dorel Luca d1d71a8e1a Backed out 4 changesets (bug 1674845) for Browser-chrome failures in toolkit/content/tests/browser/browser_findbar.js. CLOSED TREE
Backed out changeset 8f20a34998c6 (bug 1674845)
Backed out changeset 98b99d2dd52f (bug 1674845)
Backed out changeset 804d23738709 (bug 1674845)
Backed out changeset 64ca82a10039 (bug 1674845)
2020-11-05 06:47:47 +02:00
alwu 89a2733812 Bug 1674845 - part3 : create 'mochitest' subfolder for autoplay related plain mochitests. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D95880
2020-11-04 21:31:04 +00:00
alwu 635563771a Bug 1674845 - part2 : create 'autoplay' subfolder and move related files. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D95879
2020-11-04 21:29:32 +00:00
Gerald Squelart 9acb23c062 Bug 1674045 - UniqueJSONStrings takes string spans instead of pointers - r=gregtatum
For consistency with `JSONWriter` (which UniqueJSONStrings' functions use), and for added safety and some efficiency, UniqueJSONStrings now takes `Span<const char`> arguments instead of raw pointers to null-terminated strings.

Differential Revision: https://phabricator.services.mozilla.com/D95114
2020-11-02 13:55:16 +00:00
Gerald Squelart c68a3c6b21 Bug 1674045 - Add documentation to UniqueJSONStrings, and clean up - r=gregtatum
Document the class and methods.
`GetOrAddIndex` is only used internally, so it can be private.
`SpliceStringTableElements` can now only work on rvalue UniqueJSONStrings, this emphasizes that it shouldn't be used anymore after this call.

Differential Revision: https://phabricator.services.mozilla.com/D95113
2020-11-02 13:54:43 +00:00
Gerald Squelart 7e610c2025 Bug 1674045 - Deduplicate UniqueJSONStrings - r=gregtatum
The two identical copies are `UniqueJSONStrings` are combined and moved almost verbatim to BaseProfilerJSONWriter.h.

Differential Revision: https://phabricator.services.mozilla.com/D95112
2020-11-02 13:54:20 +00:00
Agi Sferro 6cc1c746de Bug 1671460 - Update to apilint 0.4.0. r=snorp
There is an unfortunate-but-necessary ordering issue that needs to be fixed in
the api.txt file which is causing a lot of one time updates. The ordering of
annotations was not stable (and now it is).

Differential Revision: https://phabricator.services.mozilla.com/D95382
2020-11-02 19:42:25 +00:00
Kartikaya Gupta eb7dfc2feb Bug 1674468 - Audit documentation. r=kvark
No significant changes here, mostly clarifying the wording in some places and
making sure it's accurate. Also added a section on the access group since
people looking at this tool may not know about those pieces.

Depends on D95394

Differential Revision: https://phabricator.services.mozilla.com/D95395
2020-11-02 16:15:14 +00:00
Kartikaya Gupta 14a729735a Bug 1674468 - Remove a couple of pending TODOs. r=kvark
We can just use the author of the commit as the committer. I don't know why
I used anything different in the first place, but I'd like to remove references
to the graphics-team email address so this seems like a good time to fix it.

Also remove another TODO that I'm probably never going to do.

Differential Revision: https://phabricator.services.mozilla.com/D95394
2020-11-02 16:14:59 +00:00
Ricky Stewart fe502f41e1 Bug 1660338 - Pass down location of `virtualenv` `bin` directory from `mach lint` invocation down to linters r=ahal
The logic the `black` and `flake8` linters were using to find the location of the appropriate binaries for linting was wrong in certain cases given how `mach lint` uses subprocesses to batch work. Instead, we allow the option to override the old janky behavior with a known-good path.

Differential Revision: https://phabricator.services.mozilla.com/D95396
2020-10-31 04:42:11 +00:00
alwu d87f6fb19c Bug 1673521 - move all browser tests into browser folder in order to adopt browser-test eslint setting automatically. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D94872
2020-10-29 19:32:26 +00:00
Razvan Maries 30f21fe657 Backed out changeset f1c833a3cffb (bug 1673521) for Gecko Decision Task bustage. CLOSED TREE 2020-10-29 21:25:52 +02:00
alwu d4db5c9d04 Bug 1673521 - move all browser tests into browser folder in order to adopt browser-test eslint setting automatically. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D94872
2020-10-29 19:06:44 +00:00
Ricky Stewart fbe2b42f80 Bug 1673700 - Don't use double quotes around strings in definition of `fork_interpose` r=firefox-build-system-reviewers,glandium
The definition of `patch_main()` has behavior that kicks in only on Windows and for Python 2. Unfortunately, not all of our `mach` commands have been migrated to Python 3, so this still matters.

Bug 1654103 replaced the single-quoted strings in this function with double-quoted strings. This should be fine, except that we call into `multiprocessing.forking.main()` with some monkey-patching that is meant to fix a Windows-specific bug (see bug 1316140). We don't do any clever serialization or anything here and we end up just passing that source to `multiprocessing.forking.main()` which aggregates that source code [dumbly](https://github.com/python/cpython/blob/2.7/Lib/multiprocessing/forking.py#L259), wrapping everything in double-quotes again and passing it to `_subprocess.CreateProcess()`, which ends up failing if the source contains strings formatted with double quotes.

We could revert bug 1654103 and exempt this file from linting, but that is overkill given that this file otherwise contains useful stuff. Instead we move everything to another file, exempt that file from linting, and update `util.py` accordingly.

Differential Revision: https://phabricator.services.mozilla.com/D94909
2020-10-29 15:47:14 +00:00
Simon Giesecke 80cee3b558 Bug 1639552 - Add obfuscating VFS. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D76140
2020-10-29 10:40:19 +00:00
Gerald Squelart 661d9cff56 Bug 1673494 - Tweak profile gathering timeout, with pref "devtools.performance.recording.child.timeout_s" - r=gregtatum
Instead of a repeating timeout of only twice the parent's serialization time + 1s, use that double parent time and multiply it by the number of children, and add the number of seconds from the about:config preference "devtools.performance.recording.child.timeout_s" (still 1s by default).

Differential Revision: https://phabricator.services.mozilla.com/D94955
2020-10-28 22:17:48 +00:00
Greg Tatum b3a1294711 Bug 1673723 - Test marker schema from xpcshell tests; r=gerald,julienw
Moving markers definitions to where they are used means that it's harder
to unit test them from gtests. xpcshell tests have the benefits of exercising
the markers in a more realistic setting. However, we still need to test the
output of the schema. This patch adds a new capability to do a deep equality
check of the schema results. The utility function attempts to make the output
more readable by humans, and suggest how to fix errors. This will hopefully
make it easy for users to update and maintain their markers.

Differential Revision: https://phabricator.services.mozilla.com/D94890
2020-10-28 14:08:59 +00:00
Greg Tatum c66aecf287 Bug 1673623 - Initialize the baseprofiler in xpcshell tests; r=gerald
The baseprofiler is required to be in place first for features that are only
implemented in the baseprofiler, such as the MarkerThreadId::MainThread().
This patch adds the initialization, and upates the ProfilerIOInterposeObserver
to use baseprofiler-only features.

The issue before, was that the base profiler was not initialized, and the
mozilla::baseprofiler::profiler_main_thread_id() was incorrectly reporting that
the main thread index was 0.

No tests were changed in this patch, but it does have coverage with:

tools/profiler/tests/xpcshell/test_feature_fileioall.js

This test would fail with just the interposer changes.

Differential Revision: https://phabricator.services.mozilla.com/D94839
2020-10-27 21:42:20 +00:00
Sean Feng bc73c91f55 Bug 1518999 - Bump the browsertime hash to 8bf45e80ccc65237c622246b11c0739f0409e8e4 r=sparky,perftest-reviewers
Bump the browsertime hash to add a fix from upstream which fixes a
firstPaint related bug when FCP is supported.

Differential Revision: https://phabricator.services.mozilla.com/D90108
2020-10-27 16:13:23 +00:00
Greg Tatum 656917f124 Bug 1671701 - Add more comprehensive tests for FileIO markers; r=gerald,julienw
This re-works our tests to run all of the branches in the interposer. There is
a bit of a risk that this won't pass on all platforms as there is an allow list
of known operations. However, it's currently only limited to macOS and Linux.

Please note the placement of utility functions in shared-head.js if they were
generally useful beyond the xpcshell tests, and in xpcshell/head.js if the
functions were only useful for the specific FileIO tests.

Differential Revision: https://phabricator.services.mozilla.com/D93850
2020-10-27 14:04:15 +00:00
Greg Tatum cf34cd635a Bug 1671701 - Remove FileIOMarkerPayload; r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D93849
2020-10-27 14:04:12 +00:00
Greg Tatum 6451405048 Bug 1671701 - Migrated FileIO markers to the Markers 2.0 API; r=gerald,julienw
This commit uses the new Markers 2.0 API for FileIO Markers. I had to
create another option for the MarkerStack class in order to conditionally
capture a backtrace inside of the Macro. Otherwise the macro invocation
failed.

Differential Revision: https://phabricator.services.mozilla.com/D93848
2020-10-27 14:04:04 +00:00
Johann Hofmann 3d58a1fbfb Bug 941354 - Use innerMostURI on about:{neterror,certerror}. r=prathiksha,baku
This is to prevent issues with parsing the correct hostname for displaying and adding
exceptions for urls like view-source:.

Differential Revision: https://phabricator.services.mozilla.com/D94421
2020-10-27 10:55:51 +00:00
Gerald Squelart 204efca960 Bug 1672310 - Output marker backtraces from other threads - r=gregtatum
The new Markers 2.0 code had missed one detail:
Backtraces in markers were serialized as just the `ProfileChunkedBuffer`, which doesn't expose the original thread id like `ProfilerBacktrace` did.
Then when outputting the profile, the marker code would use the marker's thread id (where the marker should be displayed in the frontend, which *could* be different from where the backtrace came) to deserialize and stream the attached marker, and a special check in the streaming code meant that the mismatched id would ignore the stored sample, and the displayed marker would show no stack.

With this patch, when streaming stacks from markers, the given thread id is 0 (an impossible thread id), which indicates that whatever sample is present should be streamed.
`ProfilerBacktrace` doesn't need to store the thread id anymore.
This solves the above problem.

As a bonus, the streaming code now reports the original thread of the sample(s) it found. This could be used in the future, to better show in the frontend that some stacks may come from other threads.

Differential Revision: https://phabricator.services.mozilla.com/D94264
2020-10-27 03:16:12 +00:00
Butkovits Atila f31945adb0 Backed out 3 changesets (bug 1671701) for causing failure at browser_startup_mainthreadio.js. CLOSED TREE
Backed out changeset b4b6ec163792 (bug 1671701)
Backed out changeset a343865ccfe0 (bug 1671701)
Backed out changeset e6f882892fea (bug 1671701)
2020-10-27 02:40:13 +02:00
Greg Tatum 366bff7778 Bug 1671701 - Add more comprehensive tests for FileIO markers; r=gerald,julienw
This re-works our tests to run all of the branches in the interposer. There is
a bit of a risk that this won't pass on all platforms as there is an allow list
of known operations. However, it's currently only limited to macOS and Linux.

Please note the placement of utility functions in shared-head.js if they were
generally useful beyond the xpcshell tests, and in xpcshell/head.js if the
functions were only useful for the specific FileIO tests.

Differential Revision: https://phabricator.services.mozilla.com/D93850
2020-10-26 20:27:21 +00:00
Greg Tatum 954d07f101 Bug 1671701 - Remove FileIOMarkerPayload; r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D93849
2020-10-26 20:12:29 +00:00
Greg Tatum 4cc2187968 Bug 1671701 - Migrated FileIO markers to the Markers 2.0 API; r=gerald,julienw
This commit uses the new Markers 2.0 API for FileIO Markers. I had to
create another option for the MarkerStack class in order to conditionally
capture a backtrace inside of the Macro. Otherwise the macro invocation
failed.

Differential Revision: https://phabricator.services.mozilla.com/D93848
2020-10-26 20:12:22 +00:00
Butkovits Atila 9817823a41 Backed out changeset 2edd2bd119ff (bug 941354) for browser-chrome related failures. CLOSED TREE 2020-10-26 23:31:58 +02:00
Johann Hofmann a735fc4151 Bug 941354 - Use innerMostURI on about:{neterror,certerror}. r=prathiksha,baku
This is to prevent issues with parsing the correct hostname for displaying and adding
exceptions for urls like view-source:.

Differential Revision: https://phabricator.services.mozilla.com/D94421
2020-10-26 20:12:14 +00:00
Ricky Stewart 210585edd2 Bug 1672023 - Remove excluded files from `black.yml`
These files were omitted from the original patch because reformatting them required some manual intervention in order to avoid breaking unit tests. Generally the `noqa` lines were already there and just needed to be moved from one line to another (due to the reformatting by `black`), but sometimes `black` saw fit to move a bunch of stuff all onto one line, requiring me to introduce new `noqa` lines.

Besides the autoformat by `black` and some manual fixups, this patch contains no other changes.

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94052

Depends on D94045
2020-10-26 18:21:44 +00:00
Ricky Stewart 02a7b4ebdf Bug 1654103: Standardize on Black for Python code in `mozilla-central`.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Andrew Halberstadt 1761ded69a No Bug - Update tryselect docs around installing watchman, DONTBUILD, r=firefox-source-docs-reviewers,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D94104
2020-10-20 21:55:19 +00:00
Bogdan Tara da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart fe80718d67 Bug 1672023 - Remove excluded files from `black.yml` r=sylvestre,perftest-reviewers,geckoview-reviewers,agi
These files were omitted from the original patch because reformatting them required some manual intervention in order to avoid breaking unit tests. Generally the `noqa` lines were already there and just needed to be moved from one line to another (due to the reformatting by `black`), but sometimes `black` saw fit to move a bunch of stuff all onto one line, requiring me to introduce new `noqa` lines.

Besides the autoformat by `black` and some manual fixups, this patch contains no other changes.

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94052
2020-10-23 20:40:44 +00:00
Ricky Stewart c0cea3b0fa Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Sean Feng 10786ede6c Bug 1518999 - Bump the browsertime hash to 8bf45e80ccc65237c622246b11c0739f0409e8e4 r=sparky,perftest-reviewers
Bump the browsertime hash to add a fix from upstream which fixes a
firstPaint related bug when FCP is supported.

Differential Revision: https://phabricator.services.mozilla.com/D90108
2020-10-23 19:46:56 +00:00
Myeongjun Go 27e4a2b691 Bug 1672207 - [perfdocs] Remove legacy code on build_test_description r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D94127
2020-10-23 13:04:19 +00:00
Ben Hearsum 427616a2a1 Bug 1598823: remove visualmetrics mach command r=sparky,releng-reviewers,perftest-reviewers,aki DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D94160
2020-10-22 15:20:20 +00:00
Gerald Squelart 15d07d6c5b Bug 1672501 - Initialize scProfilerMainThreadId from profiler_init - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D94419
2020-10-22 12:55:13 +00:00
Dorel Luca 1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Dorel Luca 26941cf2f5 Backed out changeset 94ec15429e21 (bug 1672023) for Backout conflicts with Bug 1654103. CLOSED TREE 2020-10-22 03:43:01 +03:00
Ricky Stewart 8b352f1843 Bug 1672023 - Remove excluded files from `black.yml` r=sylvestre,perftest-reviewers,geckoview-reviewers,agi
These files were omitted from the original patch because reformatting them required some manual intervention in order to avoid breaking unit tests. Generally the `noqa` lines were already there and just needed to be moved from one line to another (due to the reformatting by `black`), but sometimes `black` saw fit to move a bunch of stuff all onto one line, requiring me to introduce new `noqa` lines.

Besides the autoformat by `black` and some manual fixups, this patch contains no other changes.

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94052
2020-10-21 21:29:30 +00:00
Ricky Stewart 50762dacab Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Andrew Halberstadt d793d59bb4 Bug 1662603 - [ci] Print dependents of a task that should not be scheduled, r=taskgraph-reviewers,jmaher
This makes it easier to diagnose why the integration test failed.

Differential Revision: https://phabricator.services.mozilla.com/D94328
2020-10-21 21:08:32 +00:00
Florian Quèze 6f8f8fdeae Bug 1672251 - Allow capturing profiles of tests that trigger private browsing, r=gerald.
This allows `./mach test <test path and name> --profiler` to work even for tests that use private browsing.

Differential Revision: https://phabricator.services.mozilla.com/D94152
2020-10-21 18:49:38 +00:00
Andrew Halberstadt 635fc5d710 Bug 1670240 - [tryselect] Use the 'TestManifestLoader' when resolving test paths r=jmaher
This walks the file system to read moz.build files, rather than following the DIRS
traversal. The latter is problematic because many moz.build files that happen to
define manifests could be excluded by the local build config.

Differential Revision: https://phabricator.services.mozilla.com/D94197
2020-10-21 10:54:10 +00:00
Mike Conley c22a8ed2b1 Bug 1661304 - Add an interface for front-end code to annotate background hang reports. r=dthayer,chutten,smaug
Depends on D92809

Differential Revision: https://phabricator.services.mozilla.com/D88309
2020-10-20 20:13:47 +00:00
Narcis Beleuzu 1e5c5c405a Backed out 7 changesets (bug 1661304) for xpcshell failures on test_UserInteraction_annotations.js. CLOSED TREE
Backed out changeset 10459893968e (bug 1661304)
Backed out changeset 234f7dd34c95 (bug 1661304)
Backed out changeset e1954838e36f (bug 1661304)
Backed out changeset 6f0f76bb873d (bug 1661304)
Backed out changeset 5186bba48ce7 (bug 1661304)
Backed out changeset 442ce3a64bab (bug 1661304)
Backed out changeset 88b46f9a789e (bug 1661304)
2020-10-19 21:39:07 +03:00
Mike Conley 69c8c5891d Bug 1661304 - Add an interface for front-end code to annotate background hang reports. r=dthayer,chutten,smaug
Differential Revision: https://phabricator.services.mozilla.com/D88309
2020-10-19 17:41:15 +00:00
Myeongjun Go 10359c348a Bug 1663708 - [perfdocs] Find tests to add to documentation using manifests instead of path searching r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D91703
2020-10-19 15:17:04 +00:00
Gerald Squelart 334aa92a37 Bug 1670954 - profiler_main_thread_id() and profiler_is_main_thread() - r=gregtatum
These functions will be useful to get the main thread id, or check if we're in it, in some public code (e.g., markers).

Differential Revision: https://phabricator.services.mozilla.com/D93735
2020-10-16 22:06:53 +00:00
Valentin Gosu 1a306ee2c7 Bug 1671164 - Rename nsHostResolver::Blacklisted to Blocklisted r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D93491
2020-10-15 11:04:29 +00:00
Gerald Squelart ddcc13f424 Bug 1640999 - Output meta.markerSchema for all used marker types in the process - r=gregtatum
Using the stored marker functions, stream all marker schema to JSON.

Added tests for all common marker types.

Differential Revision: https://phabricator.services.mozilla.com/D90660
2020-10-14 02:12:29 +00:00
Gerald Squelart 2621d4cbf0 Bug 1640999 - Add `MarkerTypeDisplay` to all marker type definitions - r=gregtatum
Add `static mozilla::MarkerSchemaWriter MarkerTypeDisplay()` for each existing marker type.

Because all markers of a given type now must have the same payload and display schema, the DOM event marker has changed from type=tracing with category=DOMEvent, to its own type=DOMEvent, which is now accepted on the front-end.

Based on c9692715f2/src/profile-logic/marker-schema.js

Differential Revision: https://phabricator.services.mozilla.com/D90658
2020-10-14 02:11:25 +00:00
Kartikaya Gupta 41a7b15263 Bug 1669778 - Follow-up to fix silly typo. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D92992
2020-10-13 20:22:02 +00:00
Gerald Squelart e62f237161 Bug 1670547 - Made AutoArraySchemaWriter safer and more efficient - r=canaltinova
`AutoArraySchemaWriter::FreeFormElement()` is never used, we can remove it.

When constructed, `AutoArraySchemaWriter` was optionally taking a `UniqueStrings` reference, which was stored as a pointer.
Then `AutoArraySchemaWriter::StringElement()` would do a dangerous `MOZ_RELEASE_ASSERT(mStrings);`.

The class is now split in two:
- `AutoArraySchemaWriter`, which does not deal with strings at all, so we don't need a pointer to `UniqueStrings`.
- `AutoArraySchemaWithStringsWriter` that can also deal with strings, in which we store a (non-null) `UniqueStrings` reference.

This is both:
- Safer, because it's not possible to instantiate the non-string writer and try to write a string.
- More efficient, because we don't need to pass&store a `UniqueStrings` reference/pointer when we don't deal with strings.

Differential Revision: https://phabricator.services.mozilla.com/D93191
2020-10-12 23:26:10 +00:00
Andrew Halberstadt 1267e17146 Bug 1519990 - [tryselect] Don't perform expensive computation on import from 'coverage' selector, r=marco
This was causing us to generate the build backend on 'tab' completion (since we
were importing the file to parse available options out of the ArgumentParser
defined therein).

Differential Revision: https://phabricator.services.mozilla.com/D92010
2020-10-08 04:26:07 +00:00
Gerald Squelart db3689ee3d Bug 1670046 - If NoPayload marker has a stack and/or inner window id, convert to NoPayloadUserData - r=gregtatum
It is possible to add options to a NoPayload marker, but stack and inner window ids would be lost because they are normally stored in the payload 'data' JSON object, which doesn't exist for NoPayload markers.
So in this case, we automatically change the marker to a new (internal) "NoPayloadUserData" type, which has a payload in which we can store options.

This is temporary, until bug 1646714 moves these options into the top-level marker JSON object.

Differential Revision: https://phabricator.services.mozilla.com/D93059
2020-10-09 13:00:48 +00:00
Sylvestre Ledru cad53f4804 Bug 1588458 - Replace dxr links by searchfox in the code/test r=kats,sparky
Differential Revision: https://phabricator.services.mozilla.com/D92792
2020-10-08 14:02:40 +00:00
Sylvestre Ledru 1edb1e71c0 Bug 1588458 - Replace dxr links by searchfox in the md doc r=firefox-source-docs-reviewers,championshuttler DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D92790
2020-10-08 08:11:59 +00:00
Sylvestre Ledru 9bce072e44 Bug 1588458 - Replace dxr by searchfox in the rst doc r=ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D49140
2020-10-08 08:13:15 +00:00
Mike Hommey a12805866c Bug 1669633 - Remove the JS_STANDALONE option. r=firefox-build-system-reviewers,rstewart
It was only meant to be used internally, when the top-level python
configure invoked the js python subconfigure. Now that this doesn't
happen, we can remove the option, and consolidate js_standalone and
building_js, which are now roughly synonyms.

Differential Revision: https://phabricator.services.mozilla.com/D92726
2020-10-07 17:48:06 +00:00
Kartikaya Gupta f246440880 Bug 1669778 - Add a couple more presets for minimal tier-1 builds. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D92786
2020-10-07 17:30:06 +00:00
Kartikaya Gupta edb02da630 Bug 1669547 - Use the currently-running python executable for the preview command. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D92656
2020-10-07 17:28:35 +00:00
Sylvestre Ledru 5c7636b11a no bug - Fix more docs warnings (404) r=firefox-source-docs-reviewers,championshuttler DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D92765
2020-10-07 15:30:36 +00:00
Greg Tatum eb498b98eb Bug 1665810 - Add an end-to-end mochitest for DOMEvent markers r=gerald
I created a new test file for testing markers in the parent process. It
can be re-used to test a variety of different markers and their payloads
to ensure they are properly being created, and with relevant information.
The idea here is that this tests the entire pipeline, and excercises the
code as an end user of the profiler would.

Differential Revision: https://phabricator.services.mozilla.com/D92457
2020-10-06 13:57:50 +00:00
Greg Tatum c8755d4217 Bug 1669266 - Upgrade the DOMEvent marker to not be of type "tracing" r=gerald
This is part of the Markers 2.0 work. This payload proved to be a bit ambiguous
when moving to the new marker schema, so it requires an upgrader.

The test is included as the following commit.

Differential Revision: https://phabricator.services.mozilla.com/D92456
2020-10-06 13:57:46 +00:00
Gijs Kruitbosch 1aa2c4d5db Bug 1668274 - update eslint, eslint-plugin-no-unsanitized and mocha to allow use of logical assignment operators, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D91933
2020-10-02 18:00:40 +00:00
Gerald Squelart 79c0e0c0ef Bug 1667915 - Marker type is now given as a reified empty argument instead of a template argument - r=gregtatum
This makes it clearer where marker-type-specific payload arguments start, just after the marker type object.

Also improved the main API documentation.

Differential Revision: https://phabricator.services.mozilla.com/D91681
2020-10-01 11:02:54 +00:00
Gerald Squelart ee701f64d7 Bug 1667915 - Separate marker category from marker options - r=gregtatum
The `category.WithOptions(...)` syntax was a bit strange and difficult to explain.

Now the category and options are separate parameters. Default options can be specified with `MarkerOptions{}` or just `{}`.

As a special case, defaulted-NoPayload functions don't need `<>`, and defaulted-NoPayload functions and macros don't even need `{}` for default options, e.g.:
`profiler_add_marker("name", OTHER); PROFILER_MARKER_UNTYPED("name", OTHER);`

Differential Revision: https://phabricator.services.mozilla.com/D91680
2020-10-01 11:02:23 +00:00
Bogdan Tara ababae891b Backed out 2 changesets (bug 1667915) for platform related bustage CLOSED TREE
Backed out changeset e7a0788a1741 (bug 1667915)
Backed out changeset d34505b2d81b (bug 1667915)
2020-10-01 12:34:39 +03:00
Gerald Squelart 58ca6739aa Bug 1667915 - Marker type is now given as a reified empty argument instead of a template argument - r=gregtatum
This makes it clearer where marker-type-specific payload arguments start, just after the marker type object.

Also improved the main API documentation.

Differential Revision: https://phabricator.services.mozilla.com/D91681
2020-10-01 01:45:20 +00:00