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

Issue 2083213002: Change call-sites in trace viewer to use generators instead of iteration functions. (Closed)

Created:
4 years, 6 months ago by alexandermont
Modified:
4 years, 5 months ago
CC:
catapult-reviews_chromium.org, tracing-review_chromium.org
Base URL:
git@github.com:catapult-project/catapult@master
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

Change call-sites in trace viewer to use generators instead of iteration functions. Remove the iteration functions (iterateAllEventContainers, etc.) from the trace viewer and instead use the versions that iterate through the generators (childEvents, descendantEvents, childEventContainers, descendantEventContainers)/. BUG=catapult:#2407 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/403dec7cf147396400a292e2904e5c325f06c1ee

Patch Set 1 #

Patch Set 2 : fix style #

Patch Set 3 : fix style #

Patch Set 4 : fix break/continue #

Total comments: 49

Patch Set 5 : Changes from code review #

Total comments: 8

Patch Set 6 : fix nits, rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+307 lines, -497 lines) Patch
M trace_processor/experimental/mappers/scheduling/map_input_blockers.html View 1 2 3 4 5 2 chunks +11 lines, -11 lines 0 comments Download
M trace_processor/experimental/mappers/scheduling/map_rendering_cost.html View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M trace_processor/experimental/mappers/scheduling/map_wake_ups.html View 1 2 3 4 5 1 chunk +5 lines, -5 lines 0 comments Download
M trace_processor/experimental/mappers/slice_cost.html View 1 2 3 4 5 2 chunks +5 lines, -5 lines 0 comments Download
M trace_processor/experimental/mappers/thread_grouping_test.html View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M trace_processor/experimental/mappers/trace_import_cost.html View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M trace_processor/experimental/mappers/trace_stats.html View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M trace_processor/experimental/mappers/v8_map_function.html View 1 2 3 4 5 3 chunks +6 lines, -6 lines 0 comments Download
M tracing/tracing/extras/tquery/tquery.html View 1 2 3 4 1 chunk +5 lines, -6 lines 0 comments Download
M tracing/tracing/importer/find_input_expectations.html View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download
M tracing/tracing/importer/find_load_expectations.html View 1 2 3 4 2 chunks +8 lines, -4 lines 0 comments Download
M tracing/tracing/metrics/system_health/first_paint_metric.html View 1 2 3 4 5 12 chunks +73 lines, -87 lines 0 comments Download
M tracing/tracing/metrics/system_health/webview_startup_metric.html View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M tracing/tracing/metrics/v8/execution_metric.html View 8 chunks +18 lines, -18 lines 0 comments Download
M tracing/tracing/model/async_slice.html View 1 chunk +6 lines, -9 lines 0 comments Download
M tracing/tracing/model/async_slice_group.html View 1 chunk +11 lines, -14 lines 0 comments Download
M tracing/tracing/model/counter.html View 1 chunk +1 line, -5 lines 0 comments Download
M tracing/tracing/model/counter_series.html View 1 chunk +2 lines, -8 lines 0 comments Download
M tracing/tracing/model/cpu.html View 1 2 3 4 2 chunks +10 lines, -14 lines 0 comments Download
M tracing/tracing/model/device.html View 1 2 3 4 2 chunks +4 lines, -12 lines 0 comments Download
M tracing/tracing/model/device_test.html View 1 2 3 4 1 chunk +9 lines, -13 lines 0 comments Download
M tracing/tracing/model/event_container.html View 1 2 3 4 5 4 chunks +25 lines, -58 lines 0 comments Download
M tracing/tracing/model/helpers/android_app.html View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M tracing/tracing/model/helpers/chrome_browser_helper.html View 1 2 3 4 2 chunks +6 lines, -9 lines 0 comments Download
M tracing/tracing/model/helpers/chrome_process_helper.html View 1 2 3 4 1 chunk +6 lines, -11 lines 0 comments Download
M tracing/tracing/model/ir_coverage.html View 1 2 3 4 1 chunk +7 lines, -11 lines 0 comments Download
M tracing/tracing/model/ir_coverage_test.html View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M tracing/tracing/model/kernel.html View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M tracing/tracing/model/model.html View 1 2 3 4 3 chunks +16 lines, -36 lines 0 comments Download
M tracing/tracing/model/model_test.html View 1 chunk +0 lines, -10 lines 0 comments Download
M tracing/tracing/model/object_collection.html View 1 2 3 4 1 chunk +3 lines, -14 lines 0 comments Download
M tracing/tracing/model/power_series.html View 1 2 3 4 1 chunk +2 lines, -10 lines 0 comments Download
M tracing/tracing/model/power_series_test.html View 1 2 3 4 1 chunk +9 lines, -16 lines 0 comments Download
M tracing/tracing/model/process.html View 1 chunk +5 lines, -12 lines 0 comments Download
M tracing/tracing/model/process_base.html View 1 2 3 4 2 chunks +1 line, -9 lines 0 comments Download
M tracing/tracing/model/slice.html View 1 chunk +4 lines, -8 lines 0 comments Download
M tracing/tracing/model/slice_group.html View 1 chunk +5 lines, -9 lines 0 comments Download
M tracing/tracing/model/slice_test.html View 2 chunks +4 lines, -6 lines 0 comments Download
M tracing/tracing/model/thread.html View 1 2 3 4 2 chunks +3 lines, -9 lines 0 comments Download
M tracing/tracing/model/user_model/user_model.html View 1 chunk +2 lines, -7 lines 0 comments Download
M tracing/tracing/ui/brushing_state.html View 1 2 3 4 3 chunks +4 lines, -6 lines 0 comments Download
M tracing/tracing/ui/extras/chrome/cc/layer_tree_quad_stack_view.html View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M tracing/tracing/ui/extras/side_panel/input_latency_side_panel.html View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download
M tracing/tracing/ui/tracks/cpu_usage_track.html View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 41 (17 generated)
alexandermont
4 years, 6 months ago (2016-06-21 23:58:26 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2083213002/1
4 years, 6 months ago (2016-06-21 23:59:03 UTC) #5
alexandermont
4 years, 6 months ago (2016-06-21 23:59:08 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2083213002/1
4 years, 6 months ago (2016-06-22 00:05:36 UTC) #9
nednguyen
On 2016/06/21 23:59:08, alexandermont wrote: I enabled CQ (dry run) so we can see which ...
4 years, 6 months ago (2016-06-22 00:05:48 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Catapult Mac Tryserver on master.tryserver.client.catapult (JOB_FAILED, https://build.chromium.org/p/tryserver.client.catapult/builders/Catapult%20Mac%20Tryserver/builds/3683)
4 years, 6 months ago (2016-06-22 00:10:47 UTC) #12
charliea (OOO until 10-5)
(will take a look once the presubmits are passing)
4 years, 6 months ago (2016-06-22 13:56:56 UTC) #13
alexandermont
The problem was that perf_insights used the iterateAllEvents function which is now removed, and I ...
4 years, 6 months ago (2016-06-22 18:10:37 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2083213002/20001
4 years, 6 months ago (2016-06-22 18:15:18 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Catapult Mac Tryserver on master.tryserver.client.catapult (JOB_FAILED, https://build.chromium.org/p/tryserver.client.catapult/builders/Catapult%20Mac%20Tryserver/builds/3690)
4 years, 6 months ago (2016-06-22 18:32:48 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2083213002/60001
4 years, 6 months ago (2016-06-22 20:43:57 UTC) #20
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 6 months ago (2016-06-22 20:43:59 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2083213002/60001
4 years, 6 months ago (2016-06-22 20:45:26 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-22 21:22:14 UTC) #26
alexandermont
Dry run working now. Problem was fixed
4 years, 6 months ago (2016-06-22 21:57:54 UTC) #27
nednguyen
lgtm but please wait for Charlie
4 years, 6 months ago (2016-06-22 21:58:40 UTC) #28
charliea (OOO until 10-5)
https://codereview.chromium.org/2083213002/diff/60001/perf_insights/perf_insights/mappers/scheduling/map_input_blockers.html File perf_insights/perf_insights/mappers/scheduling/map_input_blockers.html (right): https://codereview.chromium.org/2083213002/diff/60001/perf_insights/perf_insights/mappers/scheduling/map_input_blockers.html#newcode52 perf_insights/perf_insights/mappers/scheduling/map_input_blockers.html:52: for (var ievent of mainThread.descendantEvents()) { Not a big ...
4 years, 5 months ago (2016-06-29 18:08:45 UTC) #29
alexandermont
https://codereview.chromium.org/2083213002/diff/60001/perf_insights/perf_insights/mappers/scheduling/map_input_blockers.html File perf_insights/perf_insights/mappers/scheduling/map_input_blockers.html (right): https://codereview.chromium.org/2083213002/diff/60001/perf_insights/perf_insights/mappers/scheduling/map_input_blockers.html#newcode52 perf_insights/perf_insights/mappers/scheduling/map_input_blockers.html:52: for (var ievent of mainThread.descendantEvents()) { On 2016/06/29 at ...
4 years, 5 months ago (2016-06-29 20:47:12 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2083213002/80001
4 years, 5 months ago (2016-06-29 20:47:53 UTC) #32
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Catapult Windows Tryserver on master.tryserver.client.catapult (JOB_FAILED, https://build.chromium.org/p/tryserver.client.catapult/builders/Catapult%20Windows%20Tryserver/builds/3600)
4 years, 5 months ago (2016-06-29 20:51:03 UTC) #34
charliea (OOO until 10-5)
lgtm w/ nits https://codereview.chromium.org/2083213002/diff/80001/tracing/tracing/metrics/system_health/first_paint_metric.html File tracing/tracing/metrics/system_health/first_paint_metric.html (right): https://codereview.chromium.org/2083213002/diff/80001/tracing/tracing/metrics/system_health/first_paint_metric.html#newcode55 tracing/tracing/metrics/system_health/first_paint_metric.html:55: } nit: I believe this brace ...
4 years, 5 months ago (2016-06-29 21:06:46 UTC) #35
alexandermont
https://codereview.chromium.org/2083213002/diff/80001/tracing/tracing/metrics/system_health/first_paint_metric.html File tracing/tracing/metrics/system_health/first_paint_metric.html (right): https://codereview.chromium.org/2083213002/diff/80001/tracing/tracing/metrics/system_health/first_paint_metric.html#newcode55 tracing/tracing/metrics/system_health/first_paint_metric.html:55: } On 2016/06/29 at 21:06:46, charliea wrote: > nit: ...
4 years, 5 months ago (2016-06-29 21:22:33 UTC) #37
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/2083213002/100001
4 years, 5 months ago (2016-06-29 21:22:45 UTC) #39
commit-bot: I haz the power
4 years, 5 months ago (2016-06-29 21:55:36 UTC) #41
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698