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

Unified Diff: net/spdy/spdy_session_pool.cc

Issue 2696403007: Add a multiplier in tracking certificate memory allocation size (Closed)
Patch Set: self Created 3 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/socket/stream_socket.cc ('k') | net/ssl/ssl_client_session_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_session_pool.cc
diff --git a/net/spdy/spdy_session_pool.cc b/net/spdy/spdy_session_pool.cc
index 1b469f488b9e03ef2f47b383d128575c2f509683..ec932488b11970b8ba1c4b23a7bada3ff23c5da0 100644
--- a/net/spdy/spdy_session_pool.cc
+++ b/net/spdy/spdy_session_pool.cc
@@ -380,7 +380,7 @@ void SpdySessionPool::DumpMemoryStats(
size_t total_size = 0;
size_t buffer_size = 0;
size_t cert_count = 0;
- size_t serialized_cert_size = 0;
+ size_t cert_size = 0;
size_t num_active_sessions = 0;
for (auto* session : sessions_) {
StreamSocket::SocketMemoryStats stats;
@@ -388,7 +388,7 @@ void SpdySessionPool::DumpMemoryStats(
total_size += session->DumpMemoryStats(&stats, &is_session_active);
buffer_size += stats.buffer_size;
cert_count += stats.cert_count;
- serialized_cert_size += stats.serialized_cert_size;
+ cert_size += stats.cert_size;
if (is_session_active)
num_active_sessions++;
}
@@ -412,9 +412,9 @@ void SpdySessionPool::DumpMemoryStats(
dump->AddScalar("cert_count",
base::trace_event::MemoryAllocatorDump::kUnitsObjects,
cert_count);
- dump->AddScalar("serialized_cert_size",
+ dump->AddScalar("cert_size",
base::trace_event::MemoryAllocatorDump::kUnitsBytes,
- serialized_cert_size);
+ cert_size);
}
bool SpdySessionPool::IsSessionAvailable(
« no previous file with comments | « net/socket/stream_socket.cc ('k') | net/ssl/ssl_client_session_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698