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

Issue 1278673002: Add stats collection for telemetry startup.warm.blank_page test. (Closed)

Created:
5 years, 4 months ago by msw
Modified:
5 years, 4 months ago
Reviewers:
gab, yzshen1, sky
CC:
chromium-reviews, penghuang+watch-mandoline_chromium.org, telemetry-reviews_chromium.org, yzshen+watch_chromium.org, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add stats collection for telemetry startup.warm.blank_page test. This attempts to mirror similar functionality in Chrome. Add StartupPerformance[Times|DataCollector] to mojo:metrics. Record times from the shell, mojo:browser, and mojo:html_viewer. Add the --enable-stats-collection-bindings flag for mandoline. Add StatsCollectionController to mojo:html_viewer. This registers and implements JS callbacks for perf testing. TODO: Record more appropriate times; sanity check values! TODO: Consolidate more code in startup_metric_utils. TODO: Serve histogram JSON, not times struct, from mojo:tracing? TODO: Refine mojo:tracing; combine with or use components/tracing? TODO: Use base::TimeTicks deltas (crbug.com/521164) TODO: Android support. BUG=513779, 517622, 521164 TEST="./tools/perf/run_benchmark --browser=mandoline-debug startup.warm.blank_page --also-run-disabled-tests" runs okay. R=yzshen@chromium.org,sky@chromium.org TBR=gab@chromium.org Committed: https://crrev.com/57daf7e60527375fd5a15fb30948b5be97bebae7 Cr-Commit-Position: refs/heads/master@{#343983}

Patch Set 1 #

Patch Set 2 : Tests are 'passing'... #

Patch Set 3 : Sync and rebase; working on it... #

Patch Set 4 : Get a histogram from mojo:Browser. #

Patch Set 5 : Use mojo:tracing for shell process start time. #

Patch Set 6 : Use startup_metric_utils in browser_manager. #

Patch Set 7 : Start cleaning up... #

Patch Set 8 : Continue cleanup. #

Patch Set 9 : Add StartupPerformance[Controller|Times] to mojo:tracing; remove HistogramProvider. #

Patch Set 10 : Add placeholders for the remaining times. #

Patch Set 11 : Cache and reuse a single mojo:tracing connection in mojo:html_viewer. #

Total comments: 42

Patch Set 12 : Address comments. #

Patch Set 13 : Cleanup #

Total comments: 23

Patch Set 14 : Address comments. #

Patch Set 15 : Sync and rebase. #

Total comments: 2

Patch Set 16 : Address comment and minor TODO; remove some TODOs. #

Patch Set 17 : Fix android build; TODO: Android startup perf testing. #

Total comments: 2

Patch Set 18 : Update comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+466 lines, -89 lines) Patch
M components/html_viewer/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +6 lines, -0 lines 0 comments Download
M components/html_viewer/DEPS View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M components/html_viewer/html_document.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +7 lines, -0 lines 0 comments Download
M components/html_viewer/html_document.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +22 lines, -0 lines 0 comments Download
M components/html_viewer/html_document_oopif.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M components/html_viewer/html_frame.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +8 lines, -0 lines 0 comments Download
M components/html_viewer/html_frame.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +24 lines, -0 lines 0 comments Download
M components/html_viewer/html_frame_tree_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -2 lines 0 comments Download
M components/html_viewer/html_frame_tree_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +0 lines, -2 lines 0 comments Download
A + components/html_viewer/stats_collection_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +21 lines, -12 lines 0 comments Download
A components/html_viewer/stats_collection_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +162 lines, -0 lines 0 comments Download
M components/startup_metric_utils/startup_metric_utils.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +5 lines, -7 lines 0 comments Download
M components/startup_metric_utils/startup_metric_utils.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M components/view_manager/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -1 line 0 comments Download
M mandoline/tab/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M mandoline/tab/DEPS View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M mandoline/tab/frame_connection.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -0 lines 0 comments Download
M mandoline/ui/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M mandoline/ui/browser/DEPS View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M mandoline/ui/browser/browser_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +21 lines, -0 lines 0 comments Download
M mojo/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M mojo/common/DEPS View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/common/trace_controller_impl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M mojo/common/tracing_impl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M mojo/runner/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M mojo/runner/context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +20 lines, -3 lines 0 comments Download
M mojo/runner/switches.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -3 lines 0 comments Download
M mojo/runner/switches.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -2 lines 0 comments Download
M mojo/services/tracing/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +1 line, -8 lines 0 comments Download
A + mojo/services/tracing/public/cpp/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 0 chunks +-1 lines, --1 lines 0 comments Download
A + mojo/services/tracing/public/cpp/switches.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -6 lines 0 comments Download
A mojo/services/tracing/public/cpp/switches.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +16 lines, -0 lines 0 comments Download
A + mojo/services/tracing/public/interfaces/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
A mojo/services/tracing/public/interfaces/tracing.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +56 lines, -0 lines 0 comments Download
M mojo/services/tracing/tracing.mojom View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -28 lines 0 comments Download
M mojo/services/tracing/tracing_app.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +26 lines, -5 lines 0 comments Download
M mojo/services/tracing/tracing_app.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +44 lines, -1 line 0 comments Download

Messages

Total messages: 34 (13 generated)
msw
Hey Yuzhu and Scott, please take a high-level look; thanks!
5 years, 4 months ago (2015-08-12 22:32:39 UTC) #3
sky
https://codereview.chromium.org/1278673002/diff/220001/components/html_viewer/html_document.cc File components/html_viewer/html_document.cc (right): https://codereview.chromium.org/1278673002/diff/220001/components/html_viewer/html_document.cc#newcode164 components/html_viewer/html_document.cc:164: : html_document_(html_document) { nit: make sure you run git ...
5 years, 4 months ago (2015-08-12 23:54:36 UTC) #4
yzshen1
https://codereview.chromium.org/1278673002/diff/220001/components/html_viewer/DEPS File components/html_viewer/DEPS (right): https://codereview.chromium.org/1278673002/diff/220001/components/html_viewer/DEPS#newcode29 components/html_viewer/DEPS:29: "+mojo/runner", (Please see my comments in the other DEPS ...
5 years, 4 months ago (2015-08-13 15:59:12 UTC) #5
msw
+CC Sadrul; this may eventually relate to http://crbug.com/504456 https://codereview.chromium.org/1278673002/diff/220001/components/html_viewer/DEPS File components/html_viewer/DEPS (right): https://codereview.chromium.org/1278673002/diff/220001/components/html_viewer/DEPS#newcode29 components/html_viewer/DEPS:29: "+mojo/runner", ...
5 years, 4 months ago (2015-08-13 22:12:06 UTC) #6
msw
(not ready for another review yet, sorry...)
5 years, 4 months ago (2015-08-13 22:12:34 UTC) #7
msw
Comments addressed, please take another look; thanks! Please lmk if you have thoughts about the ...
5 years, 4 months ago (2015-08-14 23:20:35 UTC) #9
yzshen1
Mostly looks good. Thanks! https://codereview.chromium.org/1278673002/diff/220001/mandoline/ui/browser/browser_manager.cc File mandoline/ui/browser/browser_manager.cc (right): https://codereview.chromium.org/1278673002/diff/220001/mandoline/ui/browser/browser_manager.cc#newcode69 mandoline/ui/browser/browser_manager.cc:69: const base::Time startup_time = base::Time::Now(); ...
5 years, 4 months ago (2015-08-17 05:46:39 UTC) #10
sky
https://codereview.chromium.org/1278673002/diff/280001/components/html_viewer/html_frame.cc File components/html_viewer/html_frame.cc (right): https://codereview.chromium.org/1278673002/diff/280001/components/html_viewer/html_frame.cc#newcode200 components/html_viewer/html_frame.cc:200: startup_performance_data_collector_ = Do we really need this for all ...
5 years, 4 months ago (2015-08-17 20:09:30 UTC) #11
msw
Please take another look; I'll address TODOs in the meantime. https://codereview.chromium.org/1278673002/diff/280001/components/html_viewer/html_document.cc File components/html_viewer/html_document.cc (right): https://codereview.chromium.org/1278673002/diff/280001/components/html_viewer/html_document.cc#newcode406 ...
5 years, 4 months ago (2015-08-17 21:25:51 UTC) #13
sky
LGTM https://codereview.chromium.org/1278673002/diff/280001/mojo/services/tracing/public/interfaces/tracing.mojom File mojo/services/tracing/public/interfaces/tracing.mojom (right): https://codereview.chromium.org/1278673002/diff/280001/mojo/services/tracing/public/interfaces/tracing.mojom#newcode44 mojo/services/tracing/public/interfaces/tracing.mojom:44: interface StartupPerformanceDataCollector { On 2015/08/17 21:25:51, msw wrote: ...
5 years, 4 months ago (2015-08-17 21:41:57 UTC) #14
yzshen1
LGTM https://codereview.chromium.org/1278673002/diff/340001/components/html_viewer/html_frame.cc File components/html_viewer/html_frame.cc (right): https://codereview.chromium.org/1278673002/diff/340001/components/html_viewer/html_frame.cc#newcode167 components/html_viewer/html_frame.cc:167: startup_performance_data_collector_ = Please consider commenting on why it ...
5 years, 4 months ago (2015-08-17 21:45:52 UTC) #15
msw
+TBR gab@ for components/startup_metric_utils https://codereview.chromium.org/1278673002/diff/340001/components/html_viewer/html_frame.cc File components/html_viewer/html_frame.cc (right): https://codereview.chromium.org/1278673002/diff/340001/components/html_viewer/html_frame.cc#newcode167 components/html_viewer/html_frame.cc:167: startup_performance_data_collector_ = On 2015/08/17 21:45:52, ...
5 years, 4 months ago (2015-08-17 22:08:04 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1278673002/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1278673002/360001
5 years, 4 months ago (2015-08-17 22:08:29 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/120736)
5 years, 4 months ago (2015-08-17 22:31:27 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1278673002/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1278673002/380001
5 years, 4 months ago (2015-08-17 22:54:36 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/99365)
5 years, 4 months ago (2015-08-18 01:25:46 UTC) #27
gab
components/startup_metric_utils lgtm % comment nit https://codereview.chromium.org/1278673002/diff/380001/components/startup_metric_utils/startup_metric_utils.h File components/startup_metric_utils/startup_metric_utils.h (right): https://codereview.chromium.org/1278673002/diff/380001/components/startup_metric_utils/startup_metric_utils.h#newcode38 components/startup_metric_utils/startup_metric_utils.h:38: // Call this with ...
5 years, 4 months ago (2015-08-18 01:35:00 UTC) #28
msw
https://codereview.chromium.org/1278673002/diff/380001/components/startup_metric_utils/startup_metric_utils.h File components/startup_metric_utils/startup_metric_utils.h (right): https://codereview.chromium.org/1278673002/diff/380001/components/startup_metric_utils/startup_metric_utils.h#newcode38 components/startup_metric_utils/startup_metric_utils.h:38: // Call this with a previously recorded timestamp if ...
5 years, 4 months ago (2015-08-18 17:59:48 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1278673002/400001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1278673002/400001
5 years, 4 months ago (2015-08-18 18:00:11 UTC) #32
commit-bot: I haz the power
Committed patchset #18 (id:400001)
5 years, 4 months ago (2015-08-18 18:55:39 UTC) #33
commit-bot: I haz the power
5 years, 4 months ago (2015-08-18 18:56:14 UTC) #34
Message was sent while issue was closed.
Patchset 18 (id:??) landed as
https://crrev.com/57daf7e60527375fd5a15fb30948b5be97bebae7
Cr-Commit-Position: refs/heads/master@{#343983}

Powered by Google App Engine
This is Rietveld 408576698