summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorfrankwang@google.com <frankwang@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-09 16:59:42 +0000
committerfrankwang@google.com <frankwang@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-09 16:59:42 +0000
commitd2fdac34616d5455b0b460b827d4b9281a731606 (patch)
tree5cc52b3303a3da7688432597525de89bb3e48f34 /content
parent61354e4037200719e5afd4ed219bbec132deba1e (diff)
downloadchromium_src-d2fdac34616d5455b0b460b827d4b9281a731606.zip
chromium_src-d2fdac34616d5455b0b460b827d4b9281a731606.tar.gz
chromium_src-d2fdac34616d5455b0b460b827d4b9281a731606.tar.bz2
I added another histogram into the DuplicateContentResourceHandler. The histogram is meant to keep track of all the ResourceTypes of resources coming through the handler to see the distribution of ResourceTypes.
R=gavinp@chromium.org,darin@chromium.org Review URL: https://chromiumcodereview.appspot.com/10831201 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150820 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/browser/renderer_host/duplicate_content_resource_handler.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/content/browser/renderer_host/duplicate_content_resource_handler.cc b/content/browser/renderer_host/duplicate_content_resource_handler.cc
index 0c7a8ba..c4fbbaa 100644
--- a/content/browser/renderer_host/duplicate_content_resource_handler.cc
+++ b/content/browser/renderer_host/duplicate_content_resource_handler.cc
@@ -117,6 +117,8 @@ void DuplicateContentResourceHandler::RecordContentMetrics() {
UMA_HISTOGRAM_BOOLEAN("Duplicate.Hits", did_match_contents);
UMA_HISTOGRAM_BOOLEAN("Duplicate.HitsSameUrl",
did_match_contents && did_match_contents_and_url);
+ UMA_HISTOGRAM_ENUMERATION("Duplicate.ResourceType.All", resource_type_,
+ ResourceType::LAST_TYPE);
if (did_match_contents && !did_match_contents_and_url) {
content_and_url_matches->insert(hashed_with_url);
UMA_HISTOGRAM_CUSTOM_COUNTS("Duplicate.Size.HashHitUrlMiss", bytes_read_,