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

Unified Diff: net/spdy/spdy_framer.cc

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « net/spdy/spdy_buffer.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_framer.cc
diff --git a/net/spdy/spdy_framer.cc b/net/spdy/spdy_framer.cc
index a02cb2e30ece9b31838a60eced37929a2a33592d..e7603ff7bd445d6ee723db28f17a0ee7badba672 100644
--- a/net/spdy/spdy_framer.cc
+++ b/net/spdy/spdy_framer.cc
@@ -6,7 +6,6 @@
#include "base/lazy_instance.h"
#include "base/memory/scoped_ptr.h"
-#include "base/metrics/stats_counters.h"
#include "base/third_party/valgrind/memcheck.h"
#include "net/spdy/spdy_frame_builder.h"
#include "net/spdy/spdy_frame_reader.h"
@@ -3246,11 +3245,6 @@ void SpdyFramer::SerializeNameValueBlock(
LOG(DFATAL) << "Could not obtain compressor.";
return;
}
-
- base::StatsCounter compressed_frames("spdy.CompressedFrames");
- base::StatsCounter pre_compress_bytes("spdy.PreCompressSize");
- base::StatsCounter post_compress_bytes("spdy.PostCompressSize");
-
// Create an output frame.
// Since we'll be performing lots of flushes when compressing the data,
// zlib's lower bounds may be insufficient.
@@ -3287,11 +3281,6 @@ void SpdyFramer::SerializeNameValueBlock(
int compressed_size = compressed_max_size - compressor->avail_out;
builder->Seek(compressed_size);
builder->RewriteLength(*this);
-
- pre_compress_bytes.Add(uncompressed_len);
- post_compress_bytes.Add(compressed_size);
-
- compressed_frames.Increment();
}
} // namespace net
« no previous file with comments | « net/spdy/spdy_buffer.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698