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

Side by Side Diff: net/socket/stream_socket.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/socket/stream_socket.h" 5 #include "net/socket/stream_socket.h"
6 6
7 #include "base/metrics/field_trial.h" 7 #include "base/metrics/field_trial.h"
8 #include "base/metrics/histogram_macros.h" 8 #include "base/metrics/histogram_macros.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 result = 0; // Never used, and not really connected. 92 result = 0; // Never used, and not really connected.
93 93
94 if (omnibox_speculation_) 94 if (omnibox_speculation_)
95 result += 3; 95 result += 3;
96 else if (subresource_speculation_) 96 else if (subresource_speculation_)
97 result += 6; 97 result += 6;
98 UMA_HISTOGRAM_ENUMERATION("Net.PreconnectUtilization2", result, 9); 98 UMA_HISTOGRAM_ENUMERATION("Net.PreconnectUtilization2", result, 9);
99 } 99 }
100 100
101 StreamSocket::SocketMemoryStats::SocketMemoryStats() 101 StreamSocket::SocketMemoryStats::SocketMemoryStats()
102 : total_size(0), buffer_size(0), cert_count(0), serialized_cert_size(0) {} 102 : total_size(0), buffer_size(0), cert_count(0), cert_size(0) {}
103 103
104 StreamSocket::SocketMemoryStats::~SocketMemoryStats() {} 104 StreamSocket::SocketMemoryStats::~SocketMemoryStats() {}
105 105
106 } // namespace net 106 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698