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

Issue 2533063002: Fix Net.Socket.IdleSocketTimeSaving histogram (Closed)

Created:
4 years ago by xunjieli
Modified:
4 years ago
Reviewers:
eroman, mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org, asvitkine+watch_chromium.org, eroman
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix Net.Socket.IdleSocketTimeSaving histogram IdleSocketTimeSaving is always reported as 0 because |connect_timing| is null when sockets are reused. This CL makes the following changes to fix the histogram: (1) Reused ClientSocketHandle has the |connect_timing| of the initial connection establishment. (2) IdleSocket struct has a |connect_timing| field. (3) Replace IdleSocketTimeSaving with IdleSocketTimeSaving2 BUG=621197

Patch Set 1 : self review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -66 lines) Patch
M net/http/http_network_transaction_unittest.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M net/http/http_proxy_client_socket_pool.h View 2 chunks +6 lines, -3 lines 0 comments Download
M net/http/http_proxy_client_socket_pool.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M net/http/http_stream_factory_impl_unittest.cc View 2 chunks +6 lines, -3 lines 0 comments Download
M net/socket/client_socket_handle.cc View 1 chunk +2 lines, -1 line 0 comments Download
M net/socket/client_socket_pool.h View 2 chunks +8 lines, -4 lines 0 comments Download
M net/socket/client_socket_pool_base.h View 4 chunks +12 lines, -4 lines 0 comments Download
M net/socket/client_socket_pool_base.cc View 8 chunks +13 lines, -8 lines 0 comments Download
M net/socket/client_socket_pool_base_unittest.cc View 19 chunks +108 lines, -4 lines 0 comments Download
M net/socket/socket_test_util.h View 3 chunks +11 lines, -6 lines 0 comments Download
M net/socket/socket_test_util.cc View 3 chunks +6 lines, -4 lines 0 comments Download
M net/socket/socks_client_socket_pool.h View 2 chunks +6 lines, -3 lines 0 comments Download
M net/socket/socks_client_socket_pool.cc View 1 chunk +6 lines, -4 lines 0 comments Download
M net/socket/ssl_client_socket_pool.h View 2 chunks +6 lines, -3 lines 0 comments Download
M net/socket/ssl_client_socket_pool.cc View 1 chunk +6 lines, -4 lines 0 comments Download
M net/socket/transport_client_socket_pool.h View 2 chunks +6 lines, -3 lines 0 comments Download
M net/socket/transport_client_socket_pool.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M net/socket/websocket_transport_client_socket_pool.h View 2 chunks +6 lines, -3 lines 0 comments Download
M net/socket/websocket_transport_client_socket_pool.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
xunjieli
I was looking at UMA today and realized that I made a mistake in measuring ...
4 years ago (2016-11-28 21:11:14 UTC) #6
eroman
I'll defer this review to Matt
4 years ago (2016-11-28 21:58:20 UTC) #7
mmenke
On 2016/11/28 21:58:20, eroman (slow) wrote: > I'll defer this review to Matt I'll get ...
4 years ago (2016-11-28 22:23:05 UTC) #8
mmenke
On 2016/11/28 22:23:05, mmenke wrote: > On 2016/11/28 21:58:20, eroman (slow) wrote: > > I'll ...
4 years ago (2016-11-29 16:35:51 UTC) #12
xunjieli
On 2016/11/29 16:35:51, mmenke wrote: > On 2016/11/28 22:23:05, mmenke wrote: > > On 2016/11/28 ...
4 years ago (2016-11-29 16:40:15 UTC) #13
mmenke
4 years ago (2016-11-29 17:36:42 UTC) #14
On 2016/11/29 16:40:15, xunjieli wrote:
> On 2016/11/29 16:35:51, mmenke wrote:
> > On 2016/11/28 22:23:05, mmenke wrote:
> > > On 2016/11/28 21:58:20, eroman (slow) wrote:
> > > > I'll defer this review to Matt
> > > 
> > > I'll get to this tomorrow.
> > 
> > Do we really want to add all this stuff just for this histogram?  Is a
> histogram
> > that just contains connect times not good enough?  
> 
> What's the name of this histogram? 
> 
> > Admittedly, it may
> > over-weight connections without an entry in the DNS cache.
> 
> I was also debating about fixing or removing the histogram yesterday. I am
fine
> with the latter. I can abandon this CL and open another one.

I'd prefer to just remove the histogram, unless you think it's really important.

We have Net.DNS_Resolution_And_TCP_Connection_Latency2 (Which covers all
connection types, but doesn't cover everything that's part of connecting for SSL
or proxies).  For SSL, we also have Net.SSL_Connection_Latency2, which is
strictly time to negotiate an SSL connection *after* connection establishment
(i.e., excluding Net.DNS_Resolution_And_TCP_Connection_Latency2).

Because of how we're weirdly covering different types of sockets here, there's
going to be some grunginess in any measurement we use.

Powered by Google App Engine
This is Rietveld 408576698