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

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..1fe4de11756a956473c13aff43f2cb24db18da95 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(), 0,
+ std::numeric_limits<unsigned short>::max(), 50);
Ilya Sherman 2014/05/08 00:27:02 That's a mighty large upper bound. Do you really
perkj_chrome 2014/05/08 13:59:45 Both of these values are unsigned shorts that can
Ilya Sherman 2014/05/09 00:18:51 Yes, I see that. However, all histograms have ove
+ UMA_HISTOGRAM_CUSTOM_COUNTS("WebRTC.DataChannelMaxRetransmitTime",
+ maxRetransmitTime(), 0,
+ std::numeric_limits<unsigned short>::max(), 50);
Ilya Sherman 2014/05/08 00:27:02 Hmm, did you consider using one of the UMA_HISTOGR
perkj_chrome 2014/05/08 13:59:45 dito, see explanation above.
}
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