Takes use counter definitions and generates a use_counter_metrics.yaml with
`counter` metric definitions for each use counter and denominator.
Total use counters at time of writing: 2271 (excludes denominators)
Differential Revision: https://phabricator.services.mozilla.com/D193246
As the comment said, adding these dependencies was showing good results
back when it was done. 6~7 years later, things have changed, and
removing them makes the build faster across the board (tested from -j4
to -j48, they're up to 10% faster, with the biggest difference at -j16
and -j24)
Differential Revision: https://phabricator.services.mozilla.com/D192045
When gtest is not linked as part of the build, the source files that are
generated for it are not necessarily created during the build, so we
won't be able to find them when packaging them. We make this an allowed
situation. Ideally, we'd "just" figure out which files these are, and
not emit them in the list of generated sources, but at the moment, it's
a lot of work to be able to do so.
Differential Revision: https://phabricator.services.mozilla.com/D193003
This patch sets up the paths for DMG extraction for Mochitest mozperftest tests. It also adds some additional artifacts for the mac tests to pull and extract.
Differential Revision: https://phabricator.services.mozilla.com/D192071
distutils is no longer available in Python 3.12, which means we cannot
require it on bootstrap, otherwise we cannot bootstrap from Py 3.12.
We already require setuptools as part of mach's requirements, so it's
fine to depend on setuptools elsewhere.
Differential Revision: https://phabricator.services.mozilla.com/D190537
Aliased commands have not loaded the virtualenv associated with a
command/subcommand since bug 1695312. It has been defaulting to the
`common` virtualenv, which worked most of the time since most commands
use `common` and it also contains a large share of our dependencies.
Differential Revision: https://phabricator.services.mozilla.com/D192376
migration.ftl was used by the old, legacy XUL migration dialog that was removed
in bug 1824851.
There were still a few strings being used by migration.ftl, but I've moved those
over to migrationWizard.ftl, and gone ahead and just removed the old file.
Differential Revision: https://phabricator.services.mozilla.com/D192509
As of bug 1272768, there are only two remaining uses of the usage data
that get_resource_data returns:
- mozbuild.controller.building.BuildMonitor.log_resource_data, which
only uses cpu_percent and io.
- mozbuild.telemetry.get_build_attrs, which only uses cpu_percent.
All the aggregatation of data for other fields is lost, and, it turns
out, it is accidentally quadratic and sucks a lot of time since the
sample rate as been increased to 10Hz.
Differential Revision: https://phabricator.services.mozilla.com/D192142
Back when the code to log the resources in BuildMonitor.finish was
added in bug 883209, the condition to call log_resource_usage was
`status == 0`. It was later kind of accidentally changed in bug
1571636 (it just didn't matter). Anyways, bug 1526072 later added
another use of get_resource_usage for telemetry, with the condition
`status == 0`.
Also, back then, the usage data from get_resource_usage was used to
fill the json file, but that was changed in bug 1272768, so we don't
strictly need to keep that call to log_resource_usage where it is.
What we thus do is to move it at the same place usage is recorded for
telemetry, reducing the number of calls to get_resource_usage to one.
Differential Revision: https://phabricator.services.mozilla.com/D192141
Unit tests for mozilla::contentanalysis::ContentAnalysis class.
ContentAnalysis must remain responsive, regardless of the behavior of the
agent.
Differential Revision: https://phabricator.services.mozilla.com/D189570
Unit tests for mozilla::contentanalysis::ContentAnalysis class.
ContentAnalysis must remain responsive, regardless of the behavior of the
agent.
Differential Revision: https://phabricator.services.mozilla.com/D189570
If for some reason the warning collector throws an exception, we ignore
it, which is fine, but we also end up not setting the message for the
BuildOutputResult, which means the line is not displayed.
It's better for the warning collector to miss a warning than for the
output to pretend the line wasn't there to begin with.
Differential Revision: https://phabricator.services.mozilla.com/D192046
As the comment said, adding these dependencies was showing good results
back when it was done. 6~7 years later, things have changed, and
removing them makes the build faster across the board (tested from -j4
to -j48, they're up to 10% faster, with the biggest difference at -j16
and -j24)
Differential Revision: https://phabricator.services.mozilla.com/D192045
In the build, we have a few cases of things that have the same name,
but they happen in different directories. While disambiguating them
in the profile itself might not be super important (although it may turn
out to be, but let's assume it's not that important for now because I
also don't really want to add the directory everywhere), not
disambiguating them while tracking the markers makes it so that when it
happens that ambiguous things are running in parallel, the profile ends
up with wrong data for the corresponding markers.
Differential Revision: https://phabricator.services.mozilla.com/D192044
This patch adds some documentation on how to write Mochitest tests that are compatible with mozperftest. It also provides some additional information about running the tests, setting them up, and some common issues that people can hit.
Differential Revision: https://phabricator.services.mozilla.com/D192019
This change introduces the possibility for more interdependencies being
recorded automatically, but making this work reliably more generally
we'll probably need more work, so at the moment, just make it work for
wasm2c.
Differential Revision: https://phabricator.services.mozilla.com/D191925
There are unfortunate cases where all the rust targets don't end up on
the same line, and that's kind of confusing.
This keeps the rust targets using "Rust" (in config/makefiles/rust.mk)
and switching individual crates to "RustCrate". They will still appear
close to each other in the profiles, but targets will now have their
dedicated line.
Differential Revision: https://phabricator.services.mozilla.com/D192013
This patch adds some code to handle when the virtualenv lib path changes between the different platforms. In this case, the change makes it possible to use mochitest-mozperftest on winows machines in CI. It also adds some additional artifacts that the windows tests need to pull.
Differential Revision: https://phabricator.services.mozilla.com/D191741