From e6c0633bada8818d20008300e2efcba81c67788f Mon Sep 17 00:00:00 2001 From: "gavinp@chromium.org" Date: Fri, 10 May 2013 10:05:26 +0000 Subject: Add NEWCACHE method to IndexInitializeMethod histogram. UMA histograms don't distinguish creating a new cache from rebuilding a new index due to a preexisting stale or corrupt index. This means that it's difficult to see how often the cache is restoring with a bad index, vs a new cache being created; and since lots of users start up the new simple backend everyday, we can't track bad indexes. This is not great; index restore/rebuild is slow, and we want to make sure it happens very rarely in practice. This adds a new value to the INITIALIZE_METHOD, so we can separate new caches from rebuilding indexes in existing caches. As well, we track how many entries are in our new index. This isn't expected to always be zero, since entries can be created asynchronously while or before the index is rebuilding. But it does provide a sanity check in case index files are being erased (not expected), as large values would show we're sometimes missing index files on mature caches. R=stevet,asvitkine@chromium.org BUG=None Review URL: https://chromiumcodereview.appspot.com/14890014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199447 0039d316-1c4b-4281-b951-d872f2087c98 --- tools/metrics/histograms/histograms.xml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools') diff --git a/tools/metrics/histograms/histograms.xml b/tools/metrics/histograms/histograms.xml index 3dbcca1..e8356b5 100644 --- a/tools/metrics/histograms/histograms.xml +++ b/tools/metrics/histograms/histograms.xml @@ -6807,6 +6807,10 @@ other types of suffix sets. For each index load, whether the index file was corrupt. + + The number of entries in a newly created index file. + + At the time of index initialization, the number of enqueued jobs awaiting @@ -10569,6 +10573,7 @@ other types of suffix sets. + -- cgit v1.1