summaryrefslogtreecommitdiffstats
path: root/net/base
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-06 00:48:10 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-06 00:48:10 +0000
commitbaff44adc034cbbc68e159d1645580ee5fa7f76f (patch)
tree32a03a4dda983a8316a5c23ac9e6e419596895b4 /net/base
parentf200e3185ec8cace7e4a3292692376e9edd14e89 (diff)
downloadchromium_src-baff44adc034cbbc68e159d1645580ee5fa7f76f.zip
chromium_src-baff44adc034cbbc68e159d1645580ee5fa7f76f.tar.gz
chromium_src-baff44adc034cbbc68e159d1645580ee5fa7f76f.tar.bz2
Add some trace-points to HttpCache for request profiling (cache entry "open", "create", "waiting" and "read_info").
BUG=http://crbug.com/14478 TEST=HttpCache unittests. Review URL: http://codereview.chromium.org/201035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25583 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base')
-rw-r--r--net/base/load_log_event_type_list.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/net/base/load_log_event_type_list.h b/net/base/load_log_event_type_list.h
index 28cfc03..46d52de 100644
--- a/net/base/load_log_event_type_list.h
+++ b/net/base/load_log_event_type_list.h
@@ -95,3 +95,21 @@ EVENT_TYPE(SOCKET_POOL_STALLED_MAX_SOCKETS_PER_GROUP)
// URLRequest::ResponseStarted().
EVENT_TYPE(URL_REQUEST_START)
+// ------------------------------------------------------------------------
+// HttpCache
+// ------------------------------------------------------------------------
+
+// Measures the time while opening a disk cache entry.
+EVENT_TYPE(HTTP_CACHE_OPEN_ENTRY)
+
+// Measures the time while creating a disk cache entry.
+EVENT_TYPE(HTTP_CACHE_CREATE_ENTRY)
+
+// Measures the time while reading the response info from a disk cache entry.
+EVENT_TYPE(HTTP_CACHE_READ_INFO)
+
+// Measures the time that an HttpCache::Transaction is stalled waiting for
+// the cache entry to become available (for example if we are waiting for
+// exclusive access to an existing entry).
+EVENT_TYPE(HTTP_CACHE_WAITING)
+