diff options
author | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-13 23:23:03 +0000 |
---|---|---|
committer | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-13 23:23:03 +0000 |
commit | 9a0a55f53af05489e497aa4bc500cc1735c30713 (patch) | |
tree | bf52dc51bb1b3b36d195f364e4c62fe8cc0f8ca2 /net/http/http_network_transaction.h | |
parent | bfd979be48496fb638de3e0de3cc595d6947947f (diff) | |
download | chromium_src-9a0a55f53af05489e497aa4bc500cc1735c30713.zip chromium_src-9a0a55f53af05489e497aa4bc500cc1735c30713.tar.gz chromium_src-9a0a55f53af05489e497aa4bc500cc1735c30713.tar.bz2 |
Histogram time from request till first byte of header is received
Use this as part of the DNS testing trials.
r=wtc
Review URL: http://codereview.chromium.org/67083
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13634 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_network_transaction.h')
-rw-r--r-- | net/http/http_network_transaction.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/net/http/http_network_transaction.h b/net/http/http_network_transaction.h index 5fb48f1..d41d29d 100644 --- a/net/http/http_network_transaction.h +++ b/net/http/http_network_transaction.h @@ -8,6 +8,7 @@ #include <string> #include "base/ref_counted.h" +#include "base/scoped_ptr.h" #include "base/time.h" #include "net/base/address_list.h" #include "net/base/client_socket_handle.h" @@ -87,8 +88,10 @@ class HttpNetworkTransaction : public HttpTransaction { int DoDrainBodyForAuthRestart(); int DoDrainBodyForAuthRestartComplete(int result); - // Record histogram of latency (first byte sent till last byte received) as - // well as effective bandwidth used. + // Record histogram of time until first byte of header is received. + void LogTransactionConnectedMetrics() const; + + // Record histogram of latency (durations until last byte received). void LogTransactionMetrics() const; // Writes a log message to help debugging in the field when we block a proxy |