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

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

Issue 274453004: Adds UMA histograms for WebRTC.DataChannelMaxRetransmits WebRTC.DataChannelMaxRetransmitTime. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « 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: content/renderer/media/rtc_data_channel_handler.cc
diff --git a/content/renderer/media/rtc_data_channel_handler.cc b/content/renderer/media/rtc_data_channel_handler.cc
index 9d2b56cba46d30c4379953d8cd1e5959f27f39a4..6db6c70a8aefabbf035a61597adb37fdd21a5a66 100644
--- a/content/renderer/media/rtc_data_channel_handler.cc
+++ b/content/renderer/media/rtc_data_channel_handler.cc
@@ -4,6 +4,7 @@
#include "content/renderer/media/rtc_data_channel_handler.h"
+#include <limits>
#include <string>
#include "base/logging.h"
@@ -45,6 +46,13 @@ RtcDataChannelHandler::RtcDataChannelHandler(
IncrementCounter(CHANNEL_ORDERED);
if (negotiated())
IncrementCounter(CHANNEL_NEGOTIATED);
+
+ UMA_HISTOGRAM_CUSTOM_COUNTS("WebRTC.DataChannelMaxRetransmits",
+ maxRetransmits(), 1,
jiayl 2014/05/07 16:25:07 min should be 0
perkj_chrome 2014/05/07 17:53:56 oops - I thought this was the size of each slot in
+ std::numeric_limits<unsigned short>::max(), 50);
+ UMA_HISTOGRAM_CUSTOM_COUNTS("WebRTC.DataChannelMaxRetransmitTime",
+ maxRetransmitTime(), 1,
jiayl 2014/05/07 16:25:07 min should be 0
perkj_chrome 2014/05/07 17:53:56 Done.
+ std::numeric_limits<unsigned short>::max(), 50);
}
RtcDataChannelHandler::~RtcDataChannelHandler() {
« 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