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

Unified Diff: media/filters/stream_parser_factory.cc

Issue 2846693002: Add UMA metrics for VideoCodec.MP4 and VideoCodec.WebM (Closed)
Patch Set: Address comments Created 3 years, 7 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 | « media/filters/ffmpeg_glue.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/stream_parser_factory.cc
diff --git a/media/filters/stream_parser_factory.cc b/media/filters/stream_parser_factory.cc
index 772d1e57cc44a1fd2043639dc0dd28f5975ad7c4..55e03b79a3d8979c19a4365255f63550ae147f67 100644
--- a/media/filters/stream_parser_factory.cc
+++ b/media/filters/stream_parser_factory.cc
@@ -491,6 +491,13 @@ std::unique_ptr<StreamParser> StreamParserFactory::Create(
UMA_HISTOGRAM_ENUMERATION("Media.MSE.VideoCodec",
video_codecs[i],
CodecInfo::HISTOGRAM_MAX + 1);
+ if (type == "video/mp4") {
+ UMA_HISTOGRAM_ENUMERATION("Media.MSE.VideoCodec.MP4", video_codecs[i],
+ CodecInfo::HISTOGRAM_MAX + 1);
+ } else if (type == "video/webm") {
+ UMA_HISTOGRAM_ENUMERATION("Media.MSE.VideoCodec.WebM", video_codecs[i],
+ CodecInfo::HISTOGRAM_MAX + 1);
+ }
}
stream_parser.reset(factory_function(codecs, media_log));
« no previous file with comments | « media/filters/ffmpeg_glue.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698