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

Unified Diff: media/base/pipeline_impl.cc

Issue 2383493004: media: Add UMA to report media pipeline start result (Closed)
Patch Set: update histogram comments Created 4 years, 3 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: media/base/pipeline_impl.cc
diff --git a/media/base/pipeline_impl.cc b/media/base/pipeline_impl.cc
index 0590d00cc550f21be7bc6842bbac941a4d516cde..d739dce1e7639a8d2b0fb2cb92e228f0ca7ddd1e 100644
--- a/media/base/pipeline_impl.cc
+++ b/media/base/pipeline_impl.cc
@@ -756,6 +756,11 @@ void PipelineImpl::RendererWrapper::CompleteSeek(base::TimeDelta seek_time,
DCHECK(media_task_runner_->BelongsToCurrentThread());
DCHECK(state_ == kStarting || state_ == kSeeking || state_ == kResuming);
+ if (state_ == kStarting) {
+ UMA_HISTOGRAM_ENUMERATION("Media.PipelineStatus.Start", status,
+ PIPELINE_STATUS_MAX + 1);
+ }
+
DCHECK(pending_callbacks_);
pending_callbacks_.reset();
« 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