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

Issue 1671573002: Create a thermal manager class and wire it in to nanobench behind a flag (Closed)

Created:
4 years, 10 months ago by joshua.litt
Modified:
4 years, 10 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Create a thermal manager class and wire it in to nanobench behind a flag BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1671573002 Committed: https://skia.googlesource.com/skia/+/3ebd050be551e9d1364dbd115708e8f86397cd6f

Patch Set 1 #

Patch Set 2 : tweaks #

Total comments: 8

Patch Set 3 : feedback inc #

Patch Set 4 : tweak #

Patch Set 5 : make tm values configurable at command line #

Total comments: 6

Patch Set 6 : feedback inc #

Patch Set 7 : tweaks #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -0 lines) Patch
M bench/nanobench.cpp View 1 2 3 4 5 4 chunks +18 lines, -0 lines 0 comments Download
M gyp/bench.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M gyp/tools.gyp View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
A tools/ThermalManager.h View 1 2 3 4 5 1 chunk +61 lines, -0 lines 0 comments Download
A tools/ThermalManager.cpp View 1 2 3 4 5 6 1 chunk +113 lines, -0 lines 1 comment Download

Messages

Total messages: 24 (11 generated)
joshualitt
ptal, it turns out we can read sysfs even when not root, though I'm not ...
4 years, 10 months ago (2016-02-04 21:43:45 UTC) #3
djsollen
https://codereview.chromium.org/1671573002/diff/20001/tools/ThermalManager.cpp File tools/ThermalManager.cpp (right): https://codereview.chromium.org/1671573002/diff/20001/tools/ThermalManager.cpp#newcode71 tools/ThermalManager.cpp:71: fDisabled = fBase >= fPoint + fThreshold; // We ...
4 years, 10 months ago (2016-02-05 04:54:15 UTC) #4
joshualitt
https://codereview.chromium.org/1671573002/diff/20001/tools/ThermalManager.cpp File tools/ThermalManager.cpp (right): https://codereview.chromium.org/1671573002/diff/20001/tools/ThermalManager.cpp#newcode71 tools/ThermalManager.cpp:71: fDisabled = fBase >= fPoint + fThreshold; // We ...
4 years, 10 months ago (2016-02-05 13:50:20 UTC) #5
mtklein
https://codereview.chromium.org/1671573002/diff/20001/tools/ThermalManager.h File tools/ThermalManager.h (right): https://codereview.chromium.org/1671573002/diff/20001/tools/ThermalManager.h#newcode14 tools/ThermalManager.h:14: #define USE_THERMAL_MANAGER defined(SK_BUILD_FOR_ANDROID) || defined(SK_BUILD_FOR_UNIX) On 2016/02/05 04:54:15, djsollen ...
4 years, 10 months ago (2016-02-05 13:54:22 UTC) #7
joshualitt
On 2016/02/05 13:54:22, mtklein wrote: > https://codereview.chromium.org/1671573002/diff/20001/tools/ThermalManager.h > File tools/ThermalManager.h (right): > > https://codereview.chromium.org/1671573002/diff/20001/tools/ThermalManager.h#newcode14 > ...
4 years, 10 months ago (2016-02-08 20:30:02 UTC) #8
djsollen
https://codereview.chromium.org/1671573002/diff/80001/tools/ThermalManager.cpp File tools/ThermalManager.cpp (right): https://codereview.chromium.org/1671573002/diff/80001/tools/ThermalManager.cpp#newcode70 tools/ThermalManager.cpp:70: FILE* tempFile = fopen(path, "r"); I can't think of ...
4 years, 10 months ago (2016-02-08 20:59:33 UTC) #9
joshualitt
https://codereview.chromium.org/1671573002/diff/80001/tools/ThermalManager.cpp File tools/ThermalManager.cpp (right): https://codereview.chromium.org/1671573002/diff/80001/tools/ThermalManager.cpp#newcode70 tools/ThermalManager.cpp:70: FILE* tempFile = fopen(path, "r"); On 2016/02/08 20:59:33, djsollen ...
4 years, 10 months ago (2016-02-09 13:51:54 UTC) #10
djsollen
lgtm
4 years, 10 months ago (2016-02-09 13:56:16 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1671573002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1671573002/100001
4 years, 10 months ago (2016-02-09 13:59:38 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu-GCC-x86_64-Release-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-x86_64-Release-Trybot/builds/5997)
4 years, 10 months ago (2016-02-09 14:02:01 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1671573002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1671573002/120001
4 years, 10 months ago (2016-02-09 14:21:50 UTC) #20
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://skia.googlesource.com/skia/+/3ebd050be551e9d1364dbd115708e8f86397cd6f
4 years, 10 months ago (2016-02-09 15:18:12 UTC) #22
scroggo
4 years, 10 months ago (2016-02-10 17:01:11 UTC) #24
Message was sent while issue was closed.
https://codereview.chromium.org/1671573002/diff/120001/tools/ThermalManager.cpp
File tools/ThermalManager.cpp (right):

https://codereview.chromium.org/1671573002/diff/120001/tools/ThermalManager.c...
tools/ThermalManager.cpp:61: sleep(fSleepIntervalMs);
This breaks the AOSP mips build. From [1]:

external/skia/bench/../tools/ThermalManager.cpp:61:13: error: use of undeclared
identifier 'sleep'
            sleep(fSleepIntervalMs);

The fix for this should look like crrev.com/1568883002

Derek, this is the third time we've broken AOSP mips by calling sleep. Should we
add a builder (on the CQ) that builds our testing libraries on mips so we can
catch this sooner?

[1]
https://android-build.storage.googleapis.com/builds/git_master-skia-linux-aos...

Powered by Google App Engine
This is Rietveld 408576698