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

Issue 2909016: DevTools & WebTiming : Migrate from PassiveLogCollector to dedicated LoadTimingObserver. (Closed)

Created:
10 years, 5 months ago by pfeldman
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

DevTools & WebTiming : Migrate from PassiveLogCollector to dedicated LoadTimingObserver. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=52634

Patch Set 1 #

Total comments: 6

Patch Set 2 : Darin's review comments addressed. #

Total comments: 12

Patch Set 3 : Review comments addressed. #

Patch Set 4 : Removed unused method from async loader. #

Patch Set 5 : For try job #

Total comments: 7

Patch Set 6 : Eric's comments addressed. #

Patch Set 7 : Fixed tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+319 lines, -163 lines) Patch
M DEPS View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/chrome_net_log.h View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/net/chrome_net_log.cc View 2 chunks +5 lines, -2 lines 0 comments Download
A chrome/browser/net/load_timing_observer.h View 1 2 3 4 1 chunk +68 lines, -0 lines 0 comments Download
A chrome/browser/net/load_timing_observer.cc View 1 2 3 4 5 1 chunk +206 lines, -0 lines 0 comments Download
M chrome/browser/net/passive_log_collector.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/net/passive_log_collector.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/renderer_host/async_resource_handler.cc View 1 2 3 4 5 6 5 chunks +16 lines, -148 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/render_messages.h View 3 chunks +4 lines, -0 lines 0 comments Download
M net/url_request/url_request_netlog_params.h View 1 chunk +4 lines, -0 lines 0 comments Download
M webkit/glue/resource_loader_bridge.h View 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/glue/resource_loader_bridge.cc View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/weburlloader_impl.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
pfeldman
Hi guys, Here is a dedicated observer that I am using instead of the passive ...
10 years, 5 months ago (2010-07-14 15:34:16 UTC) #1
darin (slow to review)
LGTM http://codereview.chromium.org/2909016/diff/1/5 File chrome/browser/net/load_timing_observer.h (right): http://codereview.chromium.org/2909016/diff/1/5#newcode18 chrome/browser/net/load_timing_observer.h:18: struct UrlRequestRecord { nit: UrlRequestRecord -> URLRequestRecord (to ...
10 years, 5 months ago (2010-07-14 15:56:46 UTC) #2
pfeldman
Thanks. That was fast. http://codereview.chromium.org/2909016/diff/1/5 File chrome/browser/net/load_timing_observer.h (right): http://codereview.chromium.org/2909016/diff/1/5#newcode18 chrome/browser/net/load_timing_observer.h:18: struct UrlRequestRecord { On 2010/07/14 ...
10 years, 5 months ago (2010-07-14 16:51:21 UTC) #3
eroman
LGTM after addressing comments below. Would also be good if you could add a unit-test. ...
10 years, 5 months ago (2010-07-14 22:22:04 UTC) #4
pfeldman
http://codereview.chromium.org/2909016/diff/1010/6003 File chrome/browser/net/load_timing_observer.cc (right): http://codereview.chromium.org/2909016/diff/1010/6003#newcode76 chrome/browser/net/load_timing_observer.cc:76: URLRequestToRecordMap::iterator it = On 2010/07/14 22:22:05, eroman wrote: > ...
10 years, 5 months ago (2010-07-15 08:44:44 UTC) #5
eroman
http://codereview.chromium.org/2909016/diff/18001/19004 File chrome/browser/net/load_timing_observer.cc (right): http://codereview.chromium.org/2909016/diff/18001/19004#newcode96 chrome/browser/net/load_timing_observer.cc:96: url_request_to_record_.erase(url_request_to_record_.begin()); Can you use url_request_to_record_.clear() instead? Like you said, ...
10 years, 5 months ago (2010-07-15 18:44:46 UTC) #6
pfeldman
http://codereview.chromium.org/2909016/diff/18001/19004 File chrome/browser/net/load_timing_observer.cc (right): http://codereview.chromium.org/2909016/diff/18001/19004#newcode96 chrome/browser/net/load_timing_observer.cc:96: url_request_to_record_.erase(url_request_to_record_.begin()); On 2010/07/15 18:44:46, eroman wrote: > Can you ...
10 years, 5 months ago (2010-07-15 21:46:00 UTC) #7
eroman
10 years, 5 months ago (2010-07-15 21:49:18 UTC) #8
lgtm

http://codereview.chromium.org/2909016/diff/18001/19004
File chrome/browser/net/load_timing_observer.cc (right):

http://codereview.chromium.org/2909016/diff/18001/19004#newcode100
chrome/browser/net/load_timing_observer.cc:100: record.timing.base_time =
TimeTicksToTime(time);
On 2010/07/15 21:46:00, pfeldman wrote:
> On 2010/07/15 18:44:46, eroman wrote:
> > This isn't the same metric you had in the earlier patchset: there may be
> > repeated START/END for jobs (an initial job usually for appcache, and then
> > repeated jobs for redirect).
> > 
> > I think you still want the REQUEST_ALIVE (begin) to mark the base_time.
> 
> I actually want each subsequent redirect to overwrite previous record and
> populate it with new values. Following this route allows me capturing data for
> each of the redirects. I also want base time to be as close to the actual
> redirect/request start as possible. In fact it has no particular meaning - it
is
> just the baseline for the timing data.

Ok, so your logic change between patchsets was intentional then. sgtm.

Powered by Google App Engine
This is Rietveld 408576698