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

Issue 42527: - Added support for keeping track of load times.... (Closed)

Created:
11 years, 9 months ago by DaveMoore
Modified:
9 years, 7 months ago
CC:
DaveMoore
Visibility:
Public.

Description

- Added support for keeping track of load times. For each document loaded we record the time the page was requested by the user (or as close as we can get to that), the time the load process started, the time the document and it's dependent resources (scripts) have been loaded (before onload()) and the time all the document's resources have been loaded. We use this data for two things: 1) We histogram the deltas between the time marks 2) We expose the times to javascript running on the page which was loaded Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=13116

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 18

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 7

Patch Set 7 : '' #

Total comments: 74

Patch Set 8 : '' #

Total comments: 5

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Total comments: 7

Patch Set 13 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+447 lines, -43 lines) Patch
M base/time.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -1 line 0 comments Download
M base/time.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +12 lines, -1 line 0 comments Download
A chrome/renderer/extensions/loadtimes_extension_bindings.h View 2 3 4 5 6 7 8 9 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/renderer/extensions/loadtimes_extension_bindings.cc View 2 3 4 5 6 7 8 9 10 1 chunk +91 lines, -0 lines 0 comments Download
M chrome/renderer/render_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.h View 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +133 lines, -2 lines 0 comments Download
M chrome/renderer/renderer.vcproj View 2 3 4 5 6 7 8 9 10 11 12 1 chunk +12 lines, -4 lines 0 comments Download
M chrome/renderer/renderer_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -1 line 0 comments Download
M webkit/glue/webdatasource.h View 5 6 7 8 9 10 11 12 2 chunks +38 lines, -0 lines 0 comments Download
M webkit/glue/webdatasource_impl.h View 3 4 5 6 7 8 9 10 11 12 5 chunks +33 lines, -1 line 0 comments Download
M webkit/glue/webdatasource_impl.cc View 3 4 5 6 7 8 9 10 11 12 2 chunks +50 lines, -1 line 0 comments Download
M webkit/glue/webframe_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M webkit/glue/webframeloaderclient_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -1 line 0 comments Download
M webkit/glue/webframeloaderclient_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +30 lines, -21 lines 0 comments Download
M webkit/glue/webview_delegate.h View 5 6 7 8 9 10 11 12 2 chunks +1 line, -9 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
darin (slow to review)
I think a better solution is to add some attributes to WebDataSource to record the ...
11 years, 9 months ago (2009-03-25 16:07:34 UTC) #1
DaveMoore
http://codereview.chromium.org/42527/diff/36/1011 File base/time.h (right): http://codereview.chromium.org/42527/diff/36/1011#newcode216 Line 216: // Converts time to a double which is ...
11 years, 9 months ago (2009-03-26 00:56:02 UTC) #2
DaveMoore
I moved the UMA stuff into render_view.cc and exposed the WebNavigationType the way we discussed
11 years, 9 months ago (2009-03-27 01:28:27 UTC) #3
darin (slow to review)
http://codereview.chromium.org/42527/diff/1054/108 File chrome/browser/renderer_host/render_view_host.cc (right): http://codereview.chromium.org/42527/diff/1054/108#newcode618 Line 618: params->transition_time = base::Time::Now(); i see... this is the ...
11 years, 9 months ago (2009-03-27 16:43:29 UTC) #4
DaveMoore
Moved transition time into extra data in RenderView. Added setter for request time to WebDataSource ...
11 years, 9 months ago (2009-03-27 23:03:27 UTC) #5
darin (slow to review)
http://codereview.chromium.org/42527/diff/5003/4012 File webkit/glue/webdatasource.h (right): http://codereview.chromium.org/42527/diff/5003/4012#newcode99 Line 99: // LoadTimes nit: please separate method declarations with ...
11 years, 8 months ago (2009-03-30 21:27:15 UTC) #6
darin (slow to review)
sorry, my last batch of comments only applied to webdatasource.h and later. here's comments for ...
11 years, 8 months ago (2009-03-30 21:40:26 UTC) #7
DaveMoore
http://codereview.chromium.org/42527/diff/5003/4014 File chrome/browser/renderer_host/render_view_host.cc (right): http://codereview.chromium.org/42527/diff/5003/4014#newcode618 Line 618: params->transition_time = base::Time::Now(); On 2009/03/30 21:40:26, darin wrote: ...
11 years, 8 months ago (2009-04-01 00:11:26 UTC) #8
darin (slow to review)
more lint errors.. not a complete list. please click the lint links. http://codereview.chromium.org/42527/diff/6006/6025 File chrome/renderer/extensions/loadtimes_extension_bindings.cc ...
11 years, 8 months ago (2009-04-02 17:59:18 UTC) #9
DaveMoore
I think I got them all. Lint complains about some files not ending with newlines, ...
11 years, 8 months ago (2009-04-02 23:36:59 UTC) #10
darin (slow to review)
LGTM for submit w/ these nits picked. http://codereview.chromium.org/42527/diff/9022/9031 File webkit/glue/webdatasource.h (right): http://codereview.chromium.org/42527/diff/9022/9031#newcode99 Line 99: // ...
11 years, 8 months ago (2009-04-03 04:51:09 UTC) #11
Matt Perry
11 years, 8 months ago (2009-04-06 22:09:15 UTC) #12
We have an unfortunate naming collision here.  chrome/renderer/extensions was
intended to house chrome-extension-related code - not misc v8 extensions.  My
vote would be to move load_extension.* out to chrome/renderer/.

Powered by Google App Engine
This is Rietveld 408576698