[Telemetry] Improve _GetProcJiffies operation with using grep.
commitc3d7606e8efbb5ac063f2e98a14e09e48aff5022
authornednguyen <nednguyen@google.com>
Sat, 25 Apr 2015 06:12:28 +0000 (24 23:12 -0700)
committerCommit bot <commit-bot@chromium.org>
Sat, 25 Apr 2015 06:12:38 +0000 (25 06:12 +0000)
tree917024874e7d281c45a38e8d7dd880580532c4f7
parent0a74fd9a8fb634aa6e7407afed9fa556fc8ebca2
[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

Review URL: https://codereview.chromium.org/1106043003

Cr-Commit-Position: refs/heads/master@{#326961}
tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py
tools/telemetry/telemetry/core/platform/linux_based_platform_backend_unittest.py
tools/telemetry/unittest_data/timer_list [deleted file]