It would be great to collect and report total build time to see if certain PRs or rustc upgrade cause significant regressions.
Activity
edunham commentedon Apr 7, 2016
related to servo/saltfs#202
metrics solution chosen by discussion in #10452 might also be applicable
luser commentedon May 2, 2016
For Firefox builds we're submitting data to perfherder (the same place #10452 is talking about using):
https://treeherder.mozilla.org/perf.html#/graphs?series=%5Bmozilla-central,e5a4ade67adc2af06e39c24d1e11c00c52c943ab,1%5D&series=%5Bmozilla-central,8555b3405a4d6fca6716db38c31dc94d1c4f8fe1,1%5D
We submit the data to treeherder along with the build status from the mozharness script that runs Firefox builds in CI:
https://dxr.mozilla.org/mozilla-central/rev/1461a4071341c282afcf7b72e33036412d2251d4/testing/mozharness/mozharness/base/python.py#696
The data is collected in the
BuildMonitorclass:https://dxr.mozilla.org/mozilla-central/rev/1461a4071341c282afcf7b72e33036412d2251d4/python/mozbuild/mozbuild/controller/building.py#154
...which is spawned in the
mach build command:https://dxr.mozilla.org/mozilla-central/rev/1461a4071341c282afcf7b72e33036412d2251d4/python/mozbuild/mozbuild/mach_commands.py#317
it uses
SystemResourceMonitorto get the measurements:https://dxr.mozilla.org/mozilla-central/rev/1461a4071341c282afcf7b72e33036412d2251d4/testing/mozbase/mozsystemmonitor/mozsystemmonitor/resourcemonitor.py#130
...which uses
psutilinternally.