Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Issue 635313002: [Telemetry] Fix C-State stat reading for Note 3 and S5. (Closed)

Created:
6 years, 2 months ago by v.putkinen
Modified:
6 years, 2 months ago
CC:
chromium-reviews, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src@master
Project:
chromium
Visibility:
Public.

Description

[Telemetry] Fix C-State stat reading for Note 3 and S5. On some Android devices, the sysfs-based C-State info contains extra blank lines which will cause an exception in C-State stat parser in Android platform backend if the power metric and a Monsoon Power Monitor is in use. More precisely, /sys/devices/system/cpu/cpu*/cpuidle/state*/name contains two trailing newlines on at least Samsung Galaxy Note 3 and S5. This patch filters out these blank lines from the sysfs output and fixes nearby style. BUG=421008 TEST=SysfsPowerMonitorMonitorTest.testGetCpuStateForAndroidDevices Committed: https://crrev.com/a30ca3cd77a8a33b839c59973c414692b19f872b Cr-Commit-Position: refs/heads/master@{#300347}

Patch Set 1 #

Patch Set 2 : Unit test for SysfsPowerMonitor.GetCpuState #

Total comments: 1

Patch Set 3 : Call AndroidPlatformBackend.ParseCStateSample in test #

Patch Set 4 : More descriptive test name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -4 lines) Patch
M tools/telemetry/telemetry/core/platform/power_monitor/sysfs_power_monitor.py View 1 chunk +6 lines, -4 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/power_monitor/sysfs_power_monitor_unittest.py View 1 2 3 2 chunks +32 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (7 generated)
v.putkinen
Hi, I'd like you to review my patch.
6 years, 2 months ago (2014-10-08 11:09:22 UTC) #2
nednguyen
Can you add this case to sysfs_power_monitor_unittest.py?
6 years, 2 months ago (2014-10-08 14:48:08 UTC) #3
v.putkinen
On 2014/10/08 14:48:08, nednguyen wrote: > Can you add this case to sysfs_power_monitor_unittest.py? I added ...
6 years, 2 months ago (2014-10-10 15:40:17 UTC) #4
nednguyen
https://codereview.chromium.org/635313002/diff/20001/tools/telemetry/telemetry/core/platform/power_monitor/sysfs_power_monitor_unittest.py File tools/telemetry/telemetry/core/platform/power_monitor/sysfs_power_monitor_unittest.py (right): https://codereview.chromium.org/635313002/diff/20001/tools/telemetry/telemetry/core/platform/power_monitor/sysfs_power_monitor_unittest.py#newcode216 tools/telemetry/telemetry/core/platform/power_monitor/sysfs_power_monitor_unittest.py:216: Instead of the assertions below, how about asserting that ...
6 years, 2 months ago (2014-10-10 16:11:53 UTC) #5
v.putkinen
On 2014/10/10 16:11:53, nednguyen wrote: > https://codereview.chromium.org/635313002/diff/20001/tools/telemetry/telemetry/core/platform/power_monitor/sysfs_power_monitor_unittest.py > File > tools/telemetry/telemetry/core/platform/power_monitor/sysfs_power_monitor_unittest.py > (right): > > ...
6 years, 2 months ago (2014-10-13 09:27:38 UTC) #6
nednguyen
On 2014/10/13 09:27:38, v.putkinen wrote: > On 2014/10/10 16:11:53, nednguyen wrote: > > > https://codereview.chromium.org/635313002/diff/20001/tools/telemetry/telemetry/core/platform/power_monitor/sysfs_power_monitor_unittest.py ...
6 years, 2 months ago (2014-10-13 16:20:35 UTC) #7
v.putkinen
On 2014/10/13 16:20:35, nednguyen wrote: > Maybe renaming the test > slightly different: testGetCpuStateForAndroidDevices? Renamed.
6 years, 2 months ago (2014-10-15 11:58:44 UTC) #8
nednguyen
On 2014/10/15 11:58:44, v.putkinen wrote: > On 2014/10/13 16:20:35, nednguyen wrote: > > Maybe renaming ...
6 years, 2 months ago (2014-10-15 15:30:47 UTC) #9
v.putkinen
Please review.
6 years, 2 months ago (2014-10-20 14:00:09 UTC) #11
marja
Hmm, what do you mean, you already have an l-g-t-m from an owner?
6 years, 2 months ago (2014-10-20 15:21:28 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/635313002/120001
6 years, 2 months ago (2014-10-20 20:18:37 UTC) #18
v.putkinen
On 2014/10/20 15:21:28, marja wrote: > Hmm, what do you mean, you already have an ...
6 years, 2 months ago (2014-10-20 20:30:38 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:120001)
6 years, 2 months ago (2014-10-20 22:04:27 UTC) #20
commit-bot: I haz the power
6 years, 2 months ago (2014-10-20 22:06:02 UTC) #21
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/a30ca3cd77a8a33b839c59973c414692b19f872b
Cr-Commit-Position: refs/heads/master@{#300347}

Powered by Google App Engine
This is Rietveld 408576698