[Telemetry] Cut down on the amount of log spam on the android perf bots.

The perf bots run with -v (INFO level debugging). I'm moving the noisiest
output to DEBUG level. This will make the android log output more parsable
so that the real failures are easier to spot.

Also, this cuts down on several commands running between each page.

BUG=None
TEST=smoothness and page_cycler on android

Review URL: https://chromiumcodereview.appspot.com/18764005

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211673 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
tonyg@chromium.org 2013-07-15 20:17:41 +00:00
Родитель 8cfaad75d1
Коммит 7fc6b79a23
2 изменённых файлов: 18 добавлений и 15 удалений

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

@ -244,7 +244,8 @@ class SurfaceStatsCollector(object):
# the activity's main window are not updated when the main web content is
# composited into a SurfaceView.
results = self._adb.RunShellCommand(
'dumpsys SurfaceFlinger --latency SurfaceView', log_result=True)
'dumpsys SurfaceFlinger --latency SurfaceView',
log_result=logging.getLogger().isEnabledFor(logging.DEBUG))
if not len(results):
return (None, None)

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

@ -51,20 +51,22 @@ class ThermalThrottle(object):
logging.info(u' Device %s Thermally Thottled at %3.1f%sC',
serial_number, temp, degree_symbol)
# Print temperature of CPU SoC.
omap_temp_file = '/sys/devices/platform/omap/omap_temp_sensor.0/temperature'
if self._adb.FileExistsOnDevice(omap_temp_file):
tempdata = self._adb.GetFileContents(omap_temp_file)
temp = float(tempdata[0]) / 1000.0
logging.info(u'Current OMAP Temperature of %s = %3.1f%sC',
serial_number, temp, degree_symbol)
if logging.getLogger().isEnabledFor(logging.DEBUG):
# Print temperature of CPU SoC.
omap_temp_file = ('/sys/devices/platform/omap/omap_temp_sensor.0/'
'temperature')
if self._adb.FileExistsOnDevice(omap_temp_file):
tempdata = self._adb.GetFileContents(omap_temp_file)
temp = float(tempdata[0]) / 1000.0
logging.debug(u'Current OMAP Temperature of %s = %3.1f%sC',
serial_number, temp, degree_symbol)
# Print temperature of battery, to give a system temperature
dumpsys_log = self._adb.RunShellCommand('dumpsys battery')
for line in dumpsys_log:
if 'temperature' in line:
btemp = float([s for s in line.split() if s.isdigit()][0]) / 10.0
logging.info(u'Current battery temperature of %s = %3.1f%sC',
serial_number, btemp, degree_symbol)
# Print temperature of battery, to give a system temperature
dumpsys_log = self._adb.RunShellCommand('dumpsys battery')
for line in dumpsys_log:
if 'temperature' in line:
btemp = float([s for s in line.split() if s.isdigit()][0]) / 10.0
logging.debug(u'Current battery temperature of %s = %3.1f%sC',
serial_number, btemp, degree_symbol)
return has_been_throttled