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

Unified Diff: content/renderer/media/video_track_adapter.cc

Issue 466333005: Add UMA stats for received frames or not in video track adapter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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') | tools/metrics/histograms/histograms.xml » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/video_track_adapter.cc
diff --git a/content/renderer/media/video_track_adapter.cc b/content/renderer/media/video_track_adapter.cc
index 13b79bd5e4cacca018a71d97236f458ae002c139..9a9ab08460f8889e80639d3db8ba3fa07181ae8d 100644
--- a/content/renderer/media/video_track_adapter.cc
+++ b/content/renderer/media/video_track_adapter.cc
@@ -11,6 +11,7 @@
#include "base/bind.h"
#include "base/debug/trace_event.h"
#include "base/location.h"
+#include "base/metrics/histogram.h"
#include "media/base/video_util.h"
namespace content {
@@ -315,6 +316,8 @@ VideoTrackAdapter::VideoTrackAdapter(
VideoTrackAdapter::~VideoTrackAdapter() {
DCHECK(adapters_.empty());
+ UMA_HISTOGRAM_BOOLEAN("Media.VideoTrackAdapter.FramesReceived",
+ frame_counter_ > 0);
}
void VideoTrackAdapter::AddTrack(
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | tools/metrics/histograms/histograms.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698