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

Unified Diff: net/spdy/spdy_session_pool.cc

Issue 2696403007: Add a multiplier in tracking certificate memory allocation size (Closed)
Patch Set: 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
Index: net/spdy/spdy_session_pool.cc
diff --git a/net/spdy/spdy_session_pool.cc b/net/spdy/spdy_session_pool.cc
index 7af02fc5a331da6ea53ad42275b2055fcb5527e1..830689a1430775dc687b59fb2bb3bb9924afb431 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 (const 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("undeduped_cert_size",
base::trace_event::MemoryAllocatorDump::kUnitsBytes,
- serialized_cert_size);
+ cert_size);
}
bool SpdySessionPool::IsSessionAvailable(

Powered by Google App Engine
This is Rietveld 408576698