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

Unified Diff: storage/browser/blob/blob_storage_context.cc

Issue 826373003: [Storage] Added blob items count histogram (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added more description to histograms.xml Created 5 years, 11 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
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/blob/blob_storage_context.cc
diff --git a/storage/browser/blob/blob_storage_context.cc b/storage/browser/blob/blob_storage_context.cc
index 9c725187d6230a747670364e6d3908489b7d48fd..cedaa41538e361b56acc2ce93f6c3d5eb62eebdc 100644
--- a/storage/browser/blob/blob_storage_context.cc
+++ b/storage/browser/blob/blob_storage_context.cc
@@ -202,6 +202,8 @@ void BlobStorageContext::FinishBuildingBlob(
return;
found->second.data->set_content_type(content_type);
found->second.flags &= ~BEING_BUILT;
+ UMA_HISTOGRAM_COUNTS("Storage.Blob.ItemCount",
+ found->second.data->items().size());
UMA_HISTOGRAM_BOOLEAN(
"Storage.Blob.ExceededMemory",
(found->second.flags & EXCEEDED_MEMORY) == EXCEEDED_MEMORY);
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698