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

Issue 684713003: Telemetry: Linux-based backends should return CPU results in seconds, not jiffies. (Closed)

Created:
6 years, 1 month ago by Lei Zhang
Modified:
6 years, 1 month ago
Reviewers:
tonyg, jeremy
CC:
chromium-reviews, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Telemetry: Linux-based backends should return CPU results in seconds, not jiffies. Committed: https://crrev.com/8da2981fc70a7524c4516d0c5f7340c2c7a94da5 Cr-Commit-Position: refs/heads/master@{#302004}

Patch Set 1 #

Total comments: 2

Patch Set 2 : add comment #

Total comments: 2

Patch Set 3 : simplify file mocking #

Total comments: 3

Patch Set 4 : hard code 100 as the clk_tck value #

Patch Set 5 : update android test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -17 lines) Patch
M tools/telemetry/telemetry/core/platform/android_platform_backend_unittest.py View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py View 1 2 3 3 chunks +20 lines, -4 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/linux_based_platform_backend_unittest.py View 1 2 2 chunks +33 lines, -12 lines 0 comments Download
A tools/telemetry/unittest_data/timer_list View 1 chunk +62 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (6 generated)
Lei Zhang
6 years, 1 month ago (2014-10-28 07:47:03 UTC) #2
jeremy
https://codereview.chromium.org/684713003/diff/1/tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py File tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py (right): https://codereview.chromium.org/684713003/diff/1/tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py#newcode95 tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py:95: def GetClockTicks(self): Can you add a comment for what ...
6 years, 1 month ago (2014-10-28 11:33:53 UTC) #3
Lei Zhang
https://codereview.chromium.org/684713003/diff/1/tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py File tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py (right): https://codereview.chromium.org/684713003/diff/1/tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py#newcode95 tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py:95: def GetClockTicks(self): On 2014/10/28 11:33:53, jeremy wrote: > Can ...
6 years, 1 month ago (2014-10-28 20:56:58 UTC) #4
jeremy
LGTM https://codereview.chromium.org/684713003/diff/20001/tools/telemetry/telemetry/core/platform/linux_based_platform_backend_unittest.py File tools/telemetry/telemetry/core/platform/linux_based_platform_backend_unittest.py (right): https://codereview.chromium.org/684713003/diff/20001/tools/telemetry/telemetry/core/platform/linux_based_platform_backend_unittest.py#newcode38 tools/telemetry/telemetry/core/platform/linux_based_platform_backend_unittest.py:38: backend.SetMockFile('/proc/1/stat', f.read()) IMHO it might be a bit ...
6 years, 1 month ago (2014-10-29 06:11:32 UTC) #5
Lei Zhang
https://codereview.chromium.org/684713003/diff/20001/tools/telemetry/telemetry/core/platform/linux_based_platform_backend_unittest.py File tools/telemetry/telemetry/core/platform/linux_based_platform_backend_unittest.py (right): https://codereview.chromium.org/684713003/diff/20001/tools/telemetry/telemetry/core/platform/linux_based_platform_backend_unittest.py#newcode38 tools/telemetry/telemetry/core/platform/linux_based_platform_backend_unittest.py:38: backend.SetMockFile('/proc/1/stat', f.read()) On 2014/10/29 06:11:32, jeremy wrote: > IMHO ...
6 years, 1 month ago (2014-10-29 07:03:08 UTC) #6
jeremy
Yes, that's exactly what I had in mind, thanks!
6 years, 1 month ago (2014-10-29 07:05:32 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/684713003/40001
6 years, 1 month ago (2014-10-29 07:18:00 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/20839)
6 years, 1 month ago (2014-10-29 07:26:03 UTC) #11
tonyg
https://codereview.chromium.org/684713003/diff/40001/tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py File tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py (right): https://codereview.chromium.org/684713003/diff/40001/tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py#newcode96 tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py:96: """Returns the number of clock ticks per second. It ...
6 years, 1 month ago (2014-10-29 16:47:17 UTC) #12
Lei Zhang
https://codereview.chromium.org/684713003/diff/40001/tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py File tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py (right): https://codereview.chromium.org/684713003/diff/40001/tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py#newcode97 tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py:97: return os.sysconf('SC_CLK_TCK') On 2014/10/29 16:47:16, tonyg wrote: > This ...
6 years, 1 month ago (2014-10-29 21:35:53 UTC) #13
tonyg
no better ideas, so lgtm :/
6 years, 1 month ago (2014-10-29 21:44:09 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/684713003/60001
6 years, 1 month ago (2014-10-29 21:55:19 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel/builds/10743)
6 years, 1 month ago (2014-10-29 23:47:39 UTC) #18
tonyg
On 2014/10/29 23:47:39, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 1 month ago (2014-10-29 23:49:09 UTC) #19
Lei Zhang
On 2014/10/29 23:49:09, tonyg wrote: > On 2014/10/29 23:47:39, I haz the power (commit-bot) wrote: ...
6 years, 1 month ago (2014-10-29 23:58:52 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/684713003/80001
6 years, 1 month ago (2014-10-30 00:01:11 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
6 years, 1 month ago (2014-10-30 01:12:58 UTC) #23
commit-bot: I haz the power
6 years, 1 month ago (2014-10-30 01:13:39 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/8da2981fc70a7524c4516d0c5f7340c2c7a94da5
Cr-Commit-Position: refs/heads/master@{#302004}

Powered by Google App Engine
This is Rietveld 408576698