Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(527)

Unified Diff: components/precache/core/precache_database.cc

Issue 2200863002: Add UMA Precache.CacheStatus.NonPrefetch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/precache/core/precache_database.cc
diff --git a/components/precache/core/precache_database.cc b/components/precache/core/precache_database.cc
index 4f8e78f3e21b0dbb1eb301d0491c9bd10ed9aed4..0ee64d8d4c8983e635cac9085328b14a20429748 100644
--- a/components/precache/core/precache_database.cc
+++ b/components/precache/core/precache_database.cc
@@ -155,6 +155,9 @@ void PrecacheDatabase::RecordURLNonPrefetch(const GURL& url,
int host_rank,
bool is_connection_cellular) {
UMA_HISTOGRAM_TIMES("Precache.Latency.NonPrefetch", latency);
+ UMA_HISTOGRAM_ENUMERATION("Precache.CacheStatus.NonPrefetch",
+ info.cache_entry_status,
+ net::HttpResponseInfo::CacheEntryStatus::ENTRY_MAX);
if (host_rank != history::kMaxTopHosts) {
// The resource was loaded on a page that could have been affected by
« no previous file with comments | « components/precache/content/precache_manager_unittest.cc ('k') | components/precache/core/precache_database_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698