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

Issue 1106043003: [Telemetry] Improve _GetProcJiffies operation with using grep. (Closed)

Created:
5 years, 8 months ago by nednguyen
Modified:
5 years, 8 months ago
CC:
chromium-reviews, telemetry-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Telemetry] Improve _GetProcJiffies operation with using grep. Previously, telemetry read the whole '/proc/timer_list' file just to parse the first occurence of "jiffies". In case the file is big and telemetry is run against remote device, this can create a big delay for transferring the file to host device. This patch modify it so that telemetry just use 'grep jiffies /proc/timer_list' to get the only lines that contain 'jiffies'. Context: https://groups.google.com/a/chromium.org/forum/#!topic/telemetry/SblQqF0tHbc Try job runs: ./tools/perf/run_benchmark --browser=trybot-all-android page_cycler.top_10_mobile --also-run-disabled-tests https://codereview.chromium.org/1100233003 ./tools/perf/run_benchmark --browser=trybot-all-mac page_cycler.intl_ja_zh https://codereview.chromium.org/1106833004 ./tools/perf/run_benchmark --browser=trybot-all-linux page_cycler.intl_ja_zh https://codereview.chromium.org/1102673005 Committed: https://crrev.com/c3d7606e8efbb5ac063f2e98a14e09e48aff5022 Cr-Commit-Position: refs/heads/master@{#326961}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Grep for 'jiffies' and use regex for parsing #

Total comments: 2

Patch Set 3 : Update unittest to better match actual /proc/timer_list file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -77 lines) Patch
M tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py View 1 3 chunks +18 lines, -10 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/linux_based_platform_backend_unittest.py View 1 2 2 chunks +20 lines, -5 lines 0 comments Download
D tools/telemetry/unittest_data/timer_list View 1 chunk +0 lines, -62 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
nednguyen
5 years, 8 months ago (2015-04-24 22:13:49 UTC) #2
aiolos (Not reviewing)
https://codereview.chromium.org/1106043003/diff/20001/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/1106043003/diff/20001/tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py#newcode154 tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py:154: ['grep', '-m', '1', 'jiffies:','/proc/timer_list']) I'm a little wary of ...
5 years, 8 months ago (2015-04-24 23:55:15 UTC) #4
jbudorick
https://codereview.chromium.org/1106043003/diff/20001/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/1106043003/diff/20001/tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py#newcode154 tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py:154: ['grep', '-m', '1', 'jiffies:','/proc/timer_list']) On 2015/04/24 23:55:15, aiolos wrote: ...
5 years, 8 months ago (2015-04-24 23:56:56 UTC) #5
aiolos (Not reviewing)
https://codereview.chromium.org/1106043003/diff/20001/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/1106043003/diff/20001/tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py#newcode154 tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py:154: ['grep', '-m', '1', 'jiffies:','/proc/timer_list']) On 2015/04/24 23:56:56, jbudorick wrote: ...
5 years, 8 months ago (2015-04-25 00:53:55 UTC) #6
nednguyen
https://codereview.chromium.org/1106043003/diff/20001/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/1106043003/diff/20001/tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py#newcode154 tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py:154: ['grep', '-m', '1', 'jiffies:','/proc/timer_list']) On 2015/04/25 00:53:55, aiolos wrote: ...
5 years, 8 months ago (2015-04-25 02:02:07 UTC) #7
aiolos (Not reviewing)
lgtm https://codereview.chromium.org/1106043003/diff/40001/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/1106043003/diff/40001/tools/telemetry/telemetry/core/platform/linux_based_platform_backend_unittest.py#newcode57 tools/telemetry/telemetry/core/platform/linux_based_platform_backend_unittest.py:57: jiffies: 10505463300 nit: Could you add a line ...
5 years, 8 months ago (2015-04-25 03:03:16 UTC) #8
nednguyen
https://codereview.chromium.org/1106043003/diff/40001/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/1106043003/diff/40001/tools/telemetry/telemetry/core/platform/linux_based_platform_backend_unittest.py#newcode57 tools/telemetry/telemetry/core/platform/linux_based_platform_backend_unittest.py:57: jiffies: 10505463300 On 2015/04/25 03:03:16, aiolos wrote: > nit: ...
5 years, 8 months ago (2015-04-25 04:10:24 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1106043003/60001
5 years, 8 months ago (2015-04-25 04:49:45 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:60001)
5 years, 8 months ago (2015-04-25 06:12:35 UTC) #13
commit-bot: I haz the power
5 years, 8 months ago (2015-04-25 06:13:35 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c3d7606e8efbb5ac063f2e98a14e09e48aff5022
Cr-Commit-Position: refs/heads/master@{#326961}

Powered by Google App Engine
This is Rietveld 408576698