From 4e314a9f15c1f439fae50edeb08dfa45766613b2 Mon Sep 17 00:00:00 2001 From: "ttuttle@chromium.org" Date: Mon, 31 Mar 2014 22:46:24 +0000 Subject: HttpAuthCache: add eviction histograms. Add histograms to measure how often realms and paths are evicted from the HTTP auth cache, along with the time since creation and last use for evicted realms. BUG=354187 TEST=HttpAuthCacheTest.* in net_unittests still passes Review URL: https://codereview.chromium.org/205673003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260685 0039d316-1c4b-4281-b951-d872f2087c98 --- net/http/http_auth_cache.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'net/http/http_auth_cache.h') diff --git a/net/http/http_auth_cache.h b/net/http/http_auth_cache.h index 75b379f..707a571 100644 --- a/net/http/http_auth_cache.h +++ b/net/http/http_auth_cache.h @@ -10,6 +10,7 @@ #include "base/gtest_prod_util.h" #include "base/memory/ref_counted.h" +#include "base/time/time.h" #include "net/base/net_export.h" #include "net/http/http_auth.h" #include "url/gurl.h" @@ -96,6 +97,11 @@ class NET_EXPORT_PRIVATE HttpAuthCache { // List of paths that define the realm's protection space. PathList paths_; + + // Times the entry was created and last used (by looking up, adding a path, + // or updating the challenge.) + base::TimeTicks creation_time_; + base::TimeTicks last_use_time_; }; // Prevent unbounded memory growth. These are safeguards for abuse; it is -- cgit v1.1