Files
firefox/python
Mike Hommey 30906f1c58 Bug 1861772 - Avoid calling get_resource_usage twice. r=firefox-build-system-reviewers,ahochheiden
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
2023-11-01 22:16:39 +00:00
..
…

This directory contains common Python code.

The basic rule is that if Python code is cross-module (that's "module" in the
Mozilla meaning - as in "module ownership") and is MPL-compatible, it should
go here.

What should not go here:

* Vendored python modules (use third_party/python instead)
* Python that is not MPL-compatible (see other-licenses/)
* Python that has good reason to remain close to its "owning" (Mozilla)
  module (e.g. it is only being consumed from there).

Historical information can be found at
https://bugzilla.mozilla.org/show_bug.cgi?id=775243
https://bugzilla.mozilla.org/show_bug.cgi?id=1346025