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

Issue 12389073: Collect tab timing information for use in telementry-based startup tests (Closed)

Created:
7 years, 9 months ago by jeremy
Modified:
7 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, bulach, aberent
Visibility:
Public.

Description

Collect tab timing information for use in telementry-based startup tests Motivation: Data collection exposed in this CL is needed by upcoming startup tests we're writing using Telemtry. Expose a new window.statsCollectionController object to JS and move existing histogram reading code into it since that seemed misplaced in DOMAutomationController. Add a new --enable-stats-collection-bindings to activate said object. Example usage in telemtry: with browser.Create() as b: b.tabs[0].Navigate("http://www.google.com") b.tabs[0].WaitForDocumentReadyStateToBeComplete() print b.tabs[0].EvaluateJavaScript('statsCollectionController.tabLoadTiming()') BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202620 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202955

Patch Set 1 #

Patch Set 2 : #

Total comments: 7

Patch Set 3 : Fix review comments #

Total comments: 12

Patch Set 4 : z #

Total comments: 9

Patch Set 5 : #

Patch Set 6 : Fix review comments #

Total comments: 6

Patch Set 7 : Send TabLoadTime over IPC instead of DictionaryValue #

Patch Set 8 : Per-tab timing info. #

Patch Set 9 : formatting/compile fix #

Total comments: 24

Patch Set 10 : Fix review comments #

Patch Set 11 : Work in Progress #

Patch Set 12 : Remove browser-side code #

Patch Set 13 : Ready for review #

Total comments: 4

Patch Set 14 : Patch for landing #

Patch Set 15 : Fix startup_measurement #

Patch Set 16 : Fix telemetry tests with reference builds. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+377 lines, -72 lines) Patch
M chrome/test/perf/page_cycler_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/test/ui/ui_test.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/ui/ui_test.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +4 lines, -0 lines 0 comments Download
M content/browser/histogram_message_filter.cc View 1 2 3 5 6 7 8 9 10 1 chunk +6 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/common/bindings_policy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -1 line 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +9 lines, -2 lines 0 comments Download
M content/renderer/dom_automation_controller.h View 1 2 3 1 chunk +0 lines, -9 lines 0 comments Download
M content/renderer/dom_automation_controller.cc View 1 2 3 2 chunks +0 lines, -42 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +16 lines, -2 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +16 lines, -0 lines 0 comments Download
A content/renderer/stats_collection_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +43 lines, -0 lines 0 comments Download
A content/renderer/stats_collection_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +159 lines, -0 lines 0 comments Download
A content/renderer/stats_collection_observer.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +40 lines, -0 lines 0 comments Download
A content/renderer/stats_collection_observer.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +33 lines, -0 lines 0 comments Download
M tools/perf/perf_tools/histogram_metric.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +6 lines, -3 lines 1 comment Download
M tools/perf/perf_tools/memory_measurement.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +8 lines, -2 lines 0 comments Download
M tools/perf/perf_tools/page_cycler.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -1 line 0 comments Download
M tools/perf/perf_tools/startup_measurement.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +14 lines, -2 lines 0 comments Download

Messages

Total messages: 48 (0 generated)
jeremy
tonyg/nat: review avi: content/ owner See CL description for open questions. Would appreciate your thoughts.
7 years, 9 months ago (2013-03-04 11:45:27 UTC) #1
Avi (use Gerrit)
random owner comments; not a full review https://codereview.chromium.org/12389073/diff/2001/content/browser/stats_collection_message_filter.cc File content/browser/stats_collection_message_filter.cc (right): https://codereview.chromium.org/12389073/diff/2001/content/browser/stats_collection_message_filter.cc#newcode21 content/browser/stats_collection_message_filter.cc:21: // Singleton ...
7 years, 9 months ago (2013-03-05 18:44:03 UTC) #2
marja
I don't think I can review this meaningfully, I don't know enough about the design ...
7 years, 9 months ago (2013-03-06 08:22:10 UTC) #3
bulach
this is great jeremy, thanks for taking the lead here! from my understand of telemetry ...
7 years, 9 months ago (2013-03-06 16:32:29 UTC) #4
tonyg
With the exception of bulach's question, this looks reasonable to me. Thinking out loud, two ...
7 years, 9 months ago (2013-03-07 00:47:37 UTC) #5
jeremy
Thanks everyone for your comments, very much appreciated!! Promoting this from WIP to full review ...
7 years, 9 months ago (2013-03-07 14:25:19 UTC) #6
bulach
good stuff, thanks Jeremy! I have some general comments below, but echoing tonyg's question: I ...
7 years, 9 months ago (2013-03-11 19:11:36 UTC) #7
nduca
How does this patch relate to https://codereview.chromium.org/12770005/?
7 years, 9 months ago (2013-03-12 19:37:39 UTC) #8
jeremy
nduca: Thanks for looking, this is only related to the other cl in that we ...
7 years, 9 months ago (2013-03-13 12:07:37 UTC) #9
nduca
so, is this really a "controller"? And is stats a bit overgeneral? Like, why do ...
7 years, 9 months ago (2013-03-13 16:52:25 UTC) #10
nduca
7 years, 9 months ago (2013-03-13 16:52:42 UTC) #11
jeremy
Thanks for the quick review Nat! Greatly appreciated!! Comments inline. On Wed, Mar 13, 2013 ...
7 years, 9 months ago (2013-03-13 18:50:07 UTC) #12
nduca
Can you ping tonyg on the naming stuff? I'm fine with whatever you two agree ...
7 years, 9 months ago (2013-03-13 20:00:52 UTC) #13
jeremy
On Wed, Mar 13, 2013 at 10:00 PM, <nduca@chromium.org> wrote: > Can you ping tonyg ...
7 years, 9 months ago (2013-03-13 21:00:17 UTC) #14
nduca
Thanks for clarifying! So we can get the stats for creation time for all the ...
7 years, 9 months ago (2013-03-13 21:32:23 UTC) #15
tonyg
The name stats_collection_extension sounds good to me. Agree with Nat that Controller doesn't seem to ...
7 years, 9 months ago (2013-03-13 23:00:14 UTC) #16
jeremy
All fixed, ready for another look! * renamed controller->extension * encode json data in the ...
7 years, 9 months ago (2013-03-20 10:28:20 UTC) #17
jeremy
nat: On second thoughts I'd like to send a vector of |TabTiming| structs via IPC ...
7 years, 9 months ago (2013-03-20 13:19:12 UTC) #18
tonyg
Looks reasonable to me. Nat should take a pass too. https://codereview.chromium.org/12389073/diff/31026/chrome/test/ui/ui_test.cc File chrome/test/ui/ui_test.cc (right): https://codereview.chromium.org/12389073/diff/31026/chrome/test/ui/ui_test.cc#newcode195 ...
7 years, 9 months ago (2013-03-21 01:49:50 UTC) #19
nduca
https://codereview.chromium.org/12389073/diff/31026/content/browser/stats_collection_message_filter.cc File content/browser/stats_collection_message_filter.cc (right): https://codereview.chromium.org/12389073/diff/31026/content/browser/stats_collection_message_filter.cc#newcode104 content/browser/stats_collection_message_filter.cc:104: source.map_key(), so whats this key? Presumably this ties back ...
7 years, 9 months ago (2013-03-21 02:02:13 UTC) #20
nduca
I guess I'm waiting for the "next patch" where dictionaryization is done in the extension ...
7 years, 9 months ago (2013-03-21 02:02:19 UTC) #21
jeremy
All fixed, ready for another look. https://codereview.chromium.org/12389073/diff/31026/chrome/test/ui/ui_test.cc File chrome/test/ui/ui_test.cc (right): https://codereview.chromium.org/12389073/diff/31026/chrome/test/ui/ui_test.cc#newcode195 chrome/test/ui/ui_test.cc:195: launch_arguments_.AppendSwitch(switches::kStatsCollectionController); On 2013/03/21 ...
7 years, 9 months ago (2013-03-21 16:13:11 UTC) #22
jeremy
nduca: Ready for another look, thanks for the pointers. This patch changes the code to ...
7 years, 8 months ago (2013-04-02 13:24:48 UTC) #23
tonyg
lgtm
7 years, 8 months ago (2013-04-02 22:56:36 UTC) #24
jeremy
Avi: Owner review for content/ plz. Jay: Owner review for chrome/test plz.
7 years, 8 months ago (2013-04-04 09:14:31 UTC) #25
nduca
lgtm on my part, thank you
7 years, 8 months ago (2013-04-04 13:24:18 UTC) #26
Avi (use Gerrit)
I'm good mod some nits, but jam has been wanting to review all content api ...
7 years, 8 months ago (2013-04-04 15:41:55 UTC) #27
jam
https://codereview.chromium.org/12389073/diff/84005/content/browser/stats_collection_message_filter.cc File content/browser/stats_collection_message_filter.cc (right): https://codereview.chromium.org/12389073/diff/84005/content/browser/stats_collection_message_filter.cc#newcode19 content/browser/stats_collection_message_filter.cc:19: namespace { ditto re putting this inside content namespace ...
7 years, 8 months ago (2013-04-04 17:28:39 UTC) #28
Jay Civelli
LGTM for chrome/test
7 years, 8 months ago (2013-04-04 17:41:37 UTC) #29
jeremy
jam: all fixed, open issues: * New name for StatsCollectionExtension? * Can move to renderer ...
7 years, 8 months ago (2013-04-07 14:51:54 UTC) #30
jam
https://codereview.chromium.org/12389073/diff/84005/content/browser/stats_collection_message_filter.cc File content/browser/stats_collection_message_filter.cc (right): https://codereview.chromium.org/12389073/diff/84005/content/browser/stats_collection_message_filter.cc#newcode83 content/browser/stats_collection_message_filter.cc:83: registrar_.Add(this, content::NOTIFICATION_LOAD_STOP, On 2013/04/07 14:51:54, jeremy wrote: > On ...
7 years, 8 months ago (2013-04-07 21:14:04 UTC) #31
jeremy
John: What name do you want me to use for StatsCollectionExtension? On Mon, Apr 8, ...
7 years, 8 months ago (2013-04-08 04:41:45 UTC) #32
jam
On 2013/04/08 04:41:45, jeremy wrote: > John: What name do you want me to use ...
7 years, 8 months ago (2013-04-08 15:13:00 UTC) #33
jeremy
Browser code removed, ready for another look.
7 years, 7 months ago (2013-05-27 09:57:02 UTC) #34
jam
lgtm https://codereview.chromium.org/12389073/diff/130001/content/browser/histogram_message_filter.cc File content/browser/histogram_message_filter.cc (right): https://codereview.chromium.org/12389073/diff/130001/content/browser/histogram_message_filter.cc#newcode54 content/browser/histogram_message_filter.cc:54: switches::kStatsCollectionController); since this switch is only used for ...
7 years, 7 months ago (2013-05-27 19:41:51 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremy@chromium.org/12389073/146001
7 years, 6 months ago (2013-05-28 15:07:55 UTC) #36
commit-bot: I haz the power
Change committed as 202620
7 years, 6 months ago (2013-05-28 19:11:43 UTC) #37
jam
https://codereview.chromium.org/12389073/diff/130001/content/browser/histogram_message_filter.cc File content/browser/histogram_message_filter.cc (right): https://codereview.chromium.org/12389073/diff/130001/content/browser/histogram_message_filter.cc#newcode54 content/browser/histogram_message_filter.cc:54: switches::kStatsCollectionController); On 2013/05/27 19:41:52, jam wrote: > since this ...
7 years, 6 months ago (2013-05-28 20:58:02 UTC) #38
tonyg
This broke the reference perf tests. Example: http://build.chromium.org/p/chromium.perf/builders/Linux%20Perf%20%281%29/builds/24105/steps/moz/logs/stdio Options are: 1. Revert this patch 2. ...
7 years, 6 months ago (2013-05-28 21:15:33 UTC) #39
jeremy
The reduced security flag is a carryover from existing code (there's history behind it), I ...
7 years, 6 months ago (2013-05-28 21:15:46 UTC) #40
jeremy
Ouch, sorry :( It's midnight here, but feel free to rollback and I'll try to ...
7 years, 6 months ago (2013-05-28 21:17:29 UTC) #41
ramant (doing other things)
Reverted this CL. thanks. https://src.chromium.org/viewvc/chrome?revision=202662&view=revision On 2013/05/28 21:17:29, jeremy wrote: > Ouch, sorry :( > ...
7 years, 6 months ago (2013-05-28 21:59:43 UTC) #42
jeremy
tonyg: PTAL - should work with reference builds now.
7 years, 6 months ago (2013-05-29 05:31:54 UTC) #43
tonyg
lgtm https://codereview.chromium.org/12389073/diff/171001/tools/perf/perf_tools/histogram_metric.py File tools/perf/perf_tools/histogram_metric.py (left): https://codereview.chromium.org/12389073/diff/171001/tools/perf/perf_tools/histogram_metric.py#oldcode40 tools/perf/perf_tools/histogram_metric.py:40: 'window.domAutomationController.%s("%s") : ""' % Looks like we lost ...
7 years, 6 months ago (2013-05-29 15:38:59 UTC) #44
jeremy
I have no idea, as far as I can tell if we don't have them ...
7 years, 6 months ago (2013-05-29 16:10:33 UTC) #45
tonyg
On Wed, May 29, 2013 at 9:10 AM, Jeremy Moskovich <jeremy@chromium.org>wrote: > I have no ...
7 years, 6 months ago (2013-05-29 16:35:31 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremy@chromium.org/12389073/171001
7 years, 6 months ago (2013-05-29 16:53:30 UTC) #47
commit-bot: I haz the power
7 years, 6 months ago (2013-05-29 20:44:35 UTC) #48
Message was sent while issue was closed.
Change committed as 202955

Powered by Google App Engine
This is Rietveld 408576698