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

Unified Diff: media/blink/resource_multibuffer_data_provider.cc

Issue 2983733002: media: Add UMA stats for bytes going in and out of multibuffer cache (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | media/blink/url_index.h » ('j') | tools/metrics/histograms/histograms.xml » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/resource_multibuffer_data_provider.cc
diff --git a/media/blink/resource_multibuffer_data_provider.cc b/media/blink/resource_multibuffer_data_provider.cc
index 921aab925539f8402a236bda8539d6daa8962a1f..0bdde0aff18ce5a664dcd403499287b1f175821f 100644
--- a/media/blink/resource_multibuffer_data_provider.cc
+++ b/media/blink/resource_multibuffer_data_provider.cc
@@ -388,6 +388,8 @@ void ResourceMultiBufferDataProvider::DidReceiveData(const char* data,
DCHECK(active_loader_);
DCHECK_GT(data_length, 0);
+ url_data_->AddBytesReadFromNetwork(data_length);
+
if (bytes_to_discard_) {
uint64_t tmp = std::min<uint64_t>(bytes_to_discard_, data_length);
data_length -= tmp;
« no previous file with comments | « no previous file | media/blink/url_index.h » ('j') | tools/metrics/histograms/histograms.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698