Bug 1545308 - Add cpufreq/scaling_governor info to android-performance.log; r=wcosta
authorGeoff Brown <gbrown@mozilla.com>
Fri, 03 May 2019 01:13:50 +0000
changeset 531222 d6416b8998419c628c2383cf768bf2c5845931bf
parent 531221 7c2f4e64d38e0405f9ff86d16f3d51d1e9f3306c
child 531223 59549c837955397b4d7da4f1c1f1656868f7f05b
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswcosta
bugs1545308
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1545308 - Add cpufreq/scaling_governor info to android-performance.log; r=wcosta Verify setting of scaling_governor by adding it to existing log. Differential Revision: https://phabricator.services.mozilla.com/D29722
testing/mozharness/mozharness/mozilla/testing/android.py
--- a/testing/mozharness/mozharness/mozilla/testing/android.py
+++ b/testing/mozharness/mozharness/mozilla/testing/android.py
@@ -245,16 +245,22 @@ class AndroidMixin(object):
         '''
         Dump some host and android device performance-related information
         to an artifact file, to help understand task performance.
         '''
         dir = self.query_abs_dirs()['abs_blob_upload_dir']
         perf_path = os.path.join(dir, "android-performance.log")
         with open(perf_path, "w") as f:
 
+            f.write('\n\nHost cpufreq/scaling_governor:\n')
+            cpus = glob.glob('/sys/devices/system/cpu/cpu*/cpufreq/scaling_governor')
+            for cpu in cpus:
+                out = subprocess.check_output(['cat', cpu])
+                f.write("%s: %s" % (cpu, out))
+
             f.write('\n\nHost /proc/cpuinfo:\n')
             out = subprocess.check_output(['cat', '/proc/cpuinfo'])
             f.write(out)
 
             f.write('\n\nHost /proc/meminfo:\n')
             out = subprocess.check_output(['cat', '/proc/meminfo'])
             f.write(out)