зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1239296 - Use telemetry_handler to store build resource data r=gps
--HG-- extra : rebase_source : 3f232b77b91750d8ab5af017552b0ae368d765cb
This commit is contained in:
Родитель
d8b7e0f2d6
Коммит
0e4a3375d2
|
@ -493,6 +493,11 @@ class Build(MachCommandBase):
|
|||
print('To view resource usage of the build, run |mach '
|
||||
'resource-usage|.')
|
||||
|
||||
telemetry_handler = getattr(self._mach_context,
|
||||
'telemetry_handler', None)
|
||||
usage = monitor.record_resource_usage()
|
||||
telemetry_handler(self._mach_context, usage)
|
||||
|
||||
# Only for full builds because incremental builders likely don't
|
||||
# need to be burdened with this.
|
||||
if not what:
|
||||
|
|
Загрузка…
Ссылка в новой задаче