From 0e4a3375d218f73ac93b99fdb336dd0b558a03ce Mon Sep 17 00:00:00 2001 From: Dan Minor Date: Fri, 29 Jan 2016 12:53:00 -0500 Subject: [PATCH] Bug 1239296 - Use telemetry_handler to store build resource data r=gps --HG-- extra : rebase_source : 3f232b77b91750d8ab5af017552b0ae368d765cb --- python/mozbuild/mozbuild/mach_commands.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/mozbuild/mozbuild/mach_commands.py b/python/mozbuild/mozbuild/mach_commands.py index 7caae0dd37ef..8916aa972678 100644 --- a/python/mozbuild/mozbuild/mach_commands.py +++ b/python/mozbuild/mozbuild/mach_commands.py @@ -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: