Bug 1340267 - Fixing linting failures in gecko_profile.py. r=me
authorSebastian Hengst <archaeopteryx@coole-files.de>
Fri, 17 Feb 2017 21:19:54 +0100
changeset 372680 94bf18f8f5be0dd0bdded66f5328c9e2e7fdf263
parent 372679 31fedf253dbf78d6ce4042d3b65f80285cf5253d
child 372681 553a16cbba209c696a2ec031f4812f50bbdcd25d
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1340267
milestone54.0a1
Bug 1340267 - Fixing linting failures in gecko_profile.py. r=me
testing/talos/talos/gecko_profile.py
--- a/testing/talos/talos/gecko_profile.py
+++ b/testing/talos/talos/gecko_profile.py
@@ -81,17 +81,17 @@ class GeckoProfile(object):
         env.update({
             'MOZ_PROFILER_STARTUP': '1',
             'MOZ_PROFILER_INTERVAL': str(self.option('interval')),
             'MOZ_PROFILER_ENTRIES': str(self.option('entries')),
             "MOZ_PROFILER_THREADS": str(self.option('threads'))
         })
 
     def _save_gecko_profile(self, cycle, symbolicator, missing_symbols_zip,
-                          profile_path):
+                            profile_path):
         try:
             with open(profile_path, 'r') as profile_file:
                 profile = json.load(profile_file)
             symbolicator.dump_and_integrate_missing_symbols(
                 profile,
                 missing_symbols_zip)
             symbolicator.symbolicate_profile(profile)
             profiling.save_profile(profile, profile_path)
@@ -164,18 +164,18 @@ class GeckoProfile(object):
             # Collect all individual profiles that the test
             # has put into gecko_profile_dir.
             for profile_filename in os.listdir(gecko_profile_dir):
                 testname = profile_filename
                 if testname.endswith(".profile"):
                     testname = testname[0:-8]
                 profile_path = os.path.join(gecko_profile_dir, profile_filename)
                 self._save_gecko_profile(cycle, symbolicator,
-                                       missing_symbols_zip,
-                                       profile_path)
+                                         missing_symbols_zip,
+                                         profile_path)
 
                 # Our zip will contain one directory per subtest,
                 # and each subtest directory will contain one or
                 # more cycle_i.profile files. For example, with
                 # test_config['name'] == 'tscrollx',
                 # profile_filename == 'iframe.svg.profile', i == 0,
                 # we'll get path_in_zip ==
                 # 'profile_tscrollx/iframe.svg/cycle_0.profile'.