Bug 1239296 - Use telemetry_handler to store build resource data r=gps

--HG--
extra : rebase_source : 3f232b77b91750d8ab5af017552b0ae368d765cb
This commit is contained in:
Dan Minor 2016-01-29 12:53:00 -05:00
Родитель d8b7e0f2d6
Коммит 0e4a3375d2
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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: