diff options
author | jar@google.com <jar@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-07 00:49:11 +0000 |
---|---|---|
committer | jar@google.com <jar@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-07 00:49:11 +0000 |
commit | cf232208caf07f3a136f00da582334c747adcf19 (patch) | |
tree | 34e04ea4a155d97403ea57e0395f7f96a5037426 /net/url_request | |
parent | 6f712875d488fd0fd8d7357199879f9f7f962dd3 (diff) | |
download | chromium_src-cf232208caf07f3a136f00da582334c747adcf19.zip chromium_src-cf232208caf07f3a136f00da582334c747adcf19.tar.gz chromium_src-cf232208caf07f3a136f00da582334c747adcf19.tar.bz2 |
Insert histograms to support latency experiments with SDCH
Gather data to show the duration of time between the first
byte sent, to last byte read. Use a second histogram to
look at latency when the content-encoding is not really
sdch (due to server side experiment, or proxy interference).
r=huanr,wtc
Review URL: http://codereview.chromium.org/9448
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4941 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request')
-rw-r--r-- | net/url_request/url_request_job.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/url_request/url_request_job.cc b/net/url_request/url_request_job.cc index dc372ba..ea5ccb9 100644 --- a/net/url_request/url_request_job.cc +++ b/net/url_request/url_request_job.cc @@ -58,6 +58,10 @@ void URLRequestJob::SetupFilter() { GetMimeType(&mime_type); filter_->SetURL(request_->url()); filter_->SetMimeType(mime_type); + // Approximate connect time with request_time. If it is not cached, then + // this is a good approximation for when the first bytes went on the + // wire. + filter_->SetConnectTime(request_->response_info_.request_time); } } } |