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

Unified Diff: blimp/net/compressed_packet_writer.cc

Issue 1962393004: Added a debug info UI for Blimp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Kevin's comments Created 4 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
Index: blimp/net/compressed_packet_writer.cc
diff --git a/blimp/net/compressed_packet_writer.cc b/blimp/net/compressed_packet_writer.cc
index 1bff4d9bc1266f6c052f0ee5d8e0540572f71c21..c41f0093da866bea4f9b4d4e5535db22f212e020 100644
--- a/blimp/net/compressed_packet_writer.cc
+++ b/blimp/net/compressed_packet_writer.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <blimp/net/blimp_connection_statistics.h>
Kevin M 2016/05/20 01:02:04 Angle brackets
shaktisahu 2016/05/22 22:36:57 Done.
#include "blimp/net/compressed_packet_writer.h"
#include <vector>
@@ -73,6 +74,11 @@ void CompressedPacketWriter::WritePacket(
return;
}
+ if (connection_statistics_) {
Kevin M 2016/05/20 01:02:04 Test this?
shaktisahu 2016/05/22 22:36:57 Done.
+ connection_statistics_->Add(
+ BlimpConnectionStatistics::EventType::BYTES_SENT, compress_result);
+ }
+
#if !defined(NDEBUG)
uncompressed_size_total_ += uncompressed_size;
compressed_size_total_ += compress_result;

Powered by Google App Engine
This is Rietveld 408576698