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

Issue 12720010: Clean up control of perf governor (Closed)

Created:
7 years, 9 months ago by aberent
Modified:
7 years, 9 months ago
Reviewers:
bulach
CC:
chromium-reviews, chrome-speed-team+watch_google.com, bulach+watch_chromium.org, yfriedman+watch_chromium.org, klundberg+watch_chromium.org, telemetry+watch_chromium.org, ilevy+watch_chromium.org, frankf+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Clean up control of perf governor The perf governor was previously controlled by the PerfTestSetup class, which set the perf governor to 'performance' mode in Startup() and reset it to its original value on TearDown(). This had a number of problems: - We ended up with TearDown() being used in place of SetUp() when starting tests where we didn't want performance mode. This looks strange. - There was no explicit way of setting the device's default performance mode. We would call TearDown() and hope for the best. This would not work if the device was already in performance mode at the start of the test. We think this is sometimes happening on the performance bots. - SetUp() also cleared the caches, which should have no direct connection with setting the performance mode. This patch creates two new classes, PerfControl and CacheControl, to manage the perf governor and cache. These replace PerfTestSetup. PerfTestSetup has not yet been deleted to avoid the need for simultaneous commits on the upstream and downstream repositories. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=189097

Patch Set 1 #

Total comments: 6

Patch Set 2 : Clean up control of perf governor - code review fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -25 lines) Patch
M build/android/pylib/android_commands.py View 1 chunk +6 lines, -0 lines 0 comments Download
M build/android/pylib/perf_tests_helper.py View 1 2 chunks +52 lines, -22 lines 0 comments Download
M tools/telemetry/telemetry/core/chrome/android_platform_backend.py View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
bulach
lgtm, thanks! just some nits below: https://codereview.chromium.org/12720010/diff/1/build/android/pylib/perf_tests_helper.py File build/android/pylib/perf_tests_helper.py (right): https://codereview.chromium.org/12720010/diff/1/build/android/pylib/perf_tests_helper.py#newcode141 build/android/pylib/perf_tests_helper.py:141: nit: remove extra ...
7 years, 9 months ago (2013-03-19 17:28:46 UTC) #1
aberent
Updated patch to follow shortly. https://codereview.chromium.org/12720010/diff/1/build/android/pylib/perf_tests_helper.py File build/android/pylib/perf_tests_helper.py (right): https://codereview.chromium.org/12720010/diff/1/build/android/pylib/perf_tests_helper.py#newcode141 build/android/pylib/perf_tests_helper.py:141: On 2013/03/19 17:28:46, bulach ...
7 years, 9 months ago (2013-03-19 17:35:46 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aberent@chromium.org/12720010/5
7 years, 9 months ago (2013-03-19 17:57:06 UTC) #3
commit-bot: I haz the power
7 years, 9 months ago (2013-03-19 20:56:29 UTC) #4
Message was sent while issue was closed.
Change committed as 189097

Powered by Google App Engine
This is Rietveld 408576698