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

Unified Diff: net/websockets/websocket_basic_handshake_stream.cc

Issue 244933003: UMA: Add Net.WebSocket.DeflateMode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed #7 Created 6 years, 8 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 | net/websockets/websocket_deflater.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/websockets/websocket_basic_handshake_stream.cc
diff --git a/net/websockets/websocket_basic_handshake_stream.cc b/net/websockets/websocket_basic_handshake_stream.cc
index d4ed6f8530a645e94fde7f9523d95f61331394df..6c5e849996a36a85725f47ed09e437a40b8c8e70 100644
--- a/net/websockets/websocket_basic_handshake_stream.cc
+++ b/net/websockets/websocket_basic_handshake_stream.cc
@@ -14,6 +14,7 @@
#include "base/basictypes.h"
#include "base/bind.h"
#include "base/containers/hash_tables.h"
+#include "base/metrics/histogram.h"
#include "base/stl_util.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_piece.h"
@@ -505,6 +506,11 @@ scoped_ptr<WebSocketStream> WebSocketBasicHandshakeStream::Upgrade() {
extensions_));
DCHECK(extension_params_.get());
if (extension_params_->deflate_enabled) {
+ UMA_HISTOGRAM_ENUMERATION(
+ "Net.WebSocket.DeflateMode",
+ extension_params_->deflate_mode,
+ WebSocketDeflater::NUM_CONTEXT_TAKEOVER_MODE_TYPES);
+
return scoped_ptr<WebSocketStream>(
new WebSocketDeflateStream(basic_stream.Pass(),
extension_params_->deflate_mode,
« no previous file with comments | « no previous file | net/websockets/websocket_deflater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698