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

Issue 2583613002: [Android] Add ability to generate test trace json for perf tests runs. (Closed)

Created:
4 years ago by rnephew (Reviews Here)
Modified:
4 years ago
CC:
agrieve+watch_chromium.org, chromium-reviews, jbudorick+watch_chromium.org, mikecase+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Add ability to generate test trace json for perf tests runs. This adds the ability to set --trace-output <dir> and generate a json file that can be opened in the chrome trace viewer that will display timelines of when each test is run on which testing shard. BUG=667470 Committed: https://crrev.com/293fc82cb952c4c0d0ef816b8b86b7e1a63ada9a Cr-Commit-Position: refs/heads/master@{#439125}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Fix presubmit #

Total comments: 4

Patch Set 3 : [Android] Add ability to generate test trace json for perf tests runs. #

Total comments: 5

Patch Set 4 : Move to context manager #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -3 lines) Patch
M build/android/PRESUBMIT.py View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M build/android/pylib/__init__.py View 1 chunk +7 lines, -0 lines 0 comments Download
M build/android/pylib/local/device/local_device_perf_test_run.py View 1 2 3 6 chunks +22 lines, -3 lines 0 comments Download
M build/android/pylib/perf/perf_test_instance.py View 2 chunks +5 lines, -0 lines 0 comments Download
M build/android/test_runner.py View 1 chunk +4 lines, -0 lines 0 comments Download
M build/android/test_runner.pydeps View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (7 generated)
rnephew (Reviews Here)
A sample json file this generates looks like this: [{"category": "process_argv", "name": "process_argv", "args": {"argv": ...
4 years ago (2016-12-15 19:24:58 UTC) #2
rnephew (Reviews Here)
On 2016/12/15 19:24:58, rnephew (Reviews Here) wrote: > A sample json file this generates looks ...
4 years ago (2016-12-15 19:26:05 UTC) #3
mikecase (-- gone --)
https://codereview.chromium.org/2583613002/diff/1/build/android/pylib/local/device/local_device_perf_test_run.py File build/android/pylib/local/device/local_device_perf_test_run.py (right): https://codereview.chromium.org/2583613002/diff/1/build/android/pylib/local/device/local_device_perf_test_run.py#newcode32 build/android/pylib/local/device/local_device_perf_test_run.py:32: from py_trace_event import trace_event On 2016/12/15 at 19:24:58, rnephew ...
4 years ago (2016-12-15 19:46:48 UTC) #4
rnephew (Reviews Here)
https://codereview.chromium.org/2583613002/diff/1/build/android/pylib/local/device/local_device_perf_test_run.py File build/android/pylib/local/device/local_device_perf_test_run.py (right): https://codereview.chromium.org/2583613002/diff/1/build/android/pylib/local/device/local_device_perf_test_run.py#newcode32 build/android/pylib/local/device/local_device_perf_test_run.py:32: from py_trace_event import trace_event On 2016/12/15 19:46:47, mikecase wrote: ...
4 years ago (2016-12-15 19:55:13 UTC) #5
mikecase (-- gone --)
Looks good. Just have a couple comments. https://codereview.chromium.org/2583613002/diff/1/build/android/pylib/local/device/local_device_perf_test_run.py File build/android/pylib/local/device/local_device_perf_test_run.py (right): https://codereview.chromium.org/2583613002/diff/1/build/android/pylib/local/device/local_device_perf_test_run.py#newcode421 build/android/pylib/local/device/local_device_perf_test_run.py:421: assert trace_event.trace_is_enabled(), ...
4 years ago (2016-12-15 19:56:02 UTC) #6
rnephew (Reviews Here)
https://codereview.chromium.org/2583613002/diff/1/build/android/pylib/local/device/local_device_perf_test_run.py File build/android/pylib/local/device/local_device_perf_test_run.py (right): https://codereview.chromium.org/2583613002/diff/1/build/android/pylib/local/device/local_device_perf_test_run.py#newcode421 build/android/pylib/local/device/local_device_perf_test_run.py:421: assert trace_event.trace_is_enabled(), 'Tracing didn\'t enable properly.' On 2016/12/15 19:56:02, ...
4 years ago (2016-12-15 20:02:10 UTC) #7
jbudorick
https://codereview.chromium.org/2583613002/diff/20001/build/android/pylib/local/device/local_device_perf_test_run.py File build/android/pylib/local/device/local_device_perf_test_run.py (right): https://codereview.chromium.org/2583613002/diff/20001/build/android/pylib/local/device/local_device_perf_test_run.py#newcode101 build/android/pylib/local/device/local_device_perf_test_run.py:101: trace_event.trace_begin(test) Isn't there a context manager version of this? ...
4 years ago (2016-12-15 20:12:23 UTC) #8
rnephew (Reviews Here)
https://codereview.chromium.org/2583613002/diff/20001/build/android/pylib/local/device/local_device_perf_test_run.py File build/android/pylib/local/device/local_device_perf_test_run.py (right): https://codereview.chromium.org/2583613002/diff/20001/build/android/pylib/local/device/local_device_perf_test_run.py#newcode101 build/android/pylib/local/device/local_device_perf_test_run.py:101: trace_event.trace_begin(test) On 2016/12/15 20:12:22, jbudorick wrote: > Isn't there ...
4 years ago (2016-12-15 20:16:43 UTC) #9
mikecase (-- gone --)
lgtm https://codereview.chromium.org/2583613002/diff/40001/build/android/PRESUBMIT.py File build/android/PRESUBMIT.py (right): https://codereview.chromium.org/2583613002/diff/40001/build/android/PRESUBMIT.py#newcode35 build/android/PRESUBMIT.py:35: J('..', '..', 'third_party', 'catapult', 'common', 'py_trace_event') nit: alphabetize.
4 years ago (2016-12-15 20:19:00 UTC) #10
jbudorick
https://codereview.chromium.org/2583613002/diff/40001/build/android/pylib/local/device/local_device_perf_test_run.py File build/android/pylib/local/device/local_device_perf_test_run.py (right): https://codereview.chromium.org/2583613002/diff/40001/build/android/pylib/local/device/local_device_perf_test_run.py#newcode100 build/android/pylib/local/device/local_device_perf_test_run.py:100: if self._test_instance.trace_output: My vote would be for a context ...
4 years ago (2016-12-15 20:22:33 UTC) #11
jbudorick
https://codereview.chromium.org/2583613002/diff/40001/build/android/pylib/local/device/local_device_perf_test_run.py File build/android/pylib/local/device/local_device_perf_test_run.py (right): https://codereview.chromium.org/2583613002/diff/40001/build/android/pylib/local/device/local_device_perf_test_run.py#newcode100 build/android/pylib/local/device/local_device_perf_test_run.py:100: if self._test_instance.trace_output: On 2016/12/15 20:22:33, jbudorick wrote: > My ...
4 years ago (2016-12-15 20:23:00 UTC) #12
mikecase (-- gone --)
On 2016/12/15 at 20:22:33, jbudorick wrote: > https://codereview.chromium.org/2583613002/diff/40001/build/android/pylib/local/device/local_device_perf_test_run.py > File build/android/pylib/local/device/local_device_perf_test_run.py (right): > > https://codereview.chromium.org/2583613002/diff/40001/build/android/pylib/local/device/local_device_perf_test_run.py#newcode100 ...
4 years ago (2016-12-15 20:25:59 UTC) #13
rnephew (Reviews Here)
https://codereview.chromium.org/2583613002/diff/40001/build/android/PRESUBMIT.py File build/android/PRESUBMIT.py (right): https://codereview.chromium.org/2583613002/diff/40001/build/android/PRESUBMIT.py#newcode35 build/android/PRESUBMIT.py:35: J('..', '..', 'third_party', 'catapult', 'common', 'py_trace_event') On 2016/12/15 20:19:00, ...
4 years ago (2016-12-15 21:24:05 UTC) #14
mikecase (-- gone --)
cool. still lgtm
4 years ago (2016-12-15 21:44:52 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2583613002/60001
4 years ago (2016-12-15 22:02:32 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/357452)
4 years ago (2016-12-16 00:21:05 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2583613002/60001
4 years ago (2016-12-16 15:53:52 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-16 16:46:38 UTC) #24
commit-bot: I haz the power
4 years ago (2016-12-16 16:49:56 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/293fc82cb952c4c0d0ef816b8b86b7e1a63ada9a
Cr-Commit-Position: refs/heads/master@{#439125}

Powered by Google App Engine
This is Rietveld 408576698