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

Issue 2623803002: Avoid creating MemoryAllocatorDump for individual sockets (Closed)

Created:
3 years, 11 months ago by xunjieli
Modified:
3 years, 11 months ago
Reviewers:
eroman, ssid
CC:
chromium-reviews, cbentzel+watch_chromium.org, Primiano Tucci (use gerrit)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid creating MemoryAllocatorDump for individual sockets This CL creates a StreamSocket::SocketMemoryStats to hold relevant socket information so that we can avoid creating individual MemoryAllocatorDump for each socket. MemoryAllocatorDump is expensive to create. This CL makes net/ MemoryDumpProvider create fewer MemoryAllocatorDump so that it can be enabled in Slow Reports. BUG=669108 Review-Url: https://codereview.chromium.org/2623803002 Cr-Commit-Position: refs/heads/master@{#443103} Committed: https://chromium.googlesource.com/chromium/src/+/998d24774d5062f8d032fedbe8870b23ad16c519

Patch Set 1 : self review #

Total comments: 14

Patch Set 2 : Address comments #

Patch Set 3 : Address Eric's comments #

Patch Set 4 : Add NET_EXPORT_PRIVATE to fix WIN compile #

Total comments: 6

Patch Set 5 : Address Eric's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -144 lines) Patch
M net/socket/client_socket_handle.h View 1 2 3 4 2 chunks +4 lines, -10 lines 0 comments Download
M net/socket/client_socket_handle.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M net/socket/client_socket_pool_base.cc View 1 2 1 chunk +28 lines, -8 lines 0 comments Download
M net/socket/ssl_client_socket_impl.h View 1 chunk +1 line, -3 lines 0 comments Download
M net/socket/ssl_client_socket_impl.cc View 1 2 3 4 2 chunks +10 lines, -33 lines 0 comments Download
M net/socket/ssl_client_socket_unittest.cc View 1 4 chunks +13 lines, -46 lines 0 comments Download
M net/socket/stream_socket.h View 1 2 3 4 3 chunks +23 lines, -12 lines 0 comments Download
M net/socket/stream_socket.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M net/spdy/spdy_session.h View 1 2 3 4 2 chunks +6 lines, -10 lines 0 comments Download
M net/spdy/spdy_session.cc View 1 2 2 chunks +4 lines, -11 lines 0 comments Download
M net/spdy/spdy_session_pool.cc View 1 chunk +34 lines, -2 lines 0 comments Download
M net/spdy/spdy_session_pool_unittest.cc View 1 chunk +8 lines, -6 lines 0 comments Download

Messages

Total messages: 32 (21 generated)
xunjieli
Eric: could you take a look? Ssid@ told me that creating a MemoryAllocatorDump is not ...
3 years, 11 months ago (2017-01-10 21:13:58 UTC) #5
ssid
Thanks for working on this. lgtm. https://codereview.chromium.org/2623803002/diff/20001/net/socket/stream_socket.h File net/socket/stream_socket.h (right): https://codereview.chromium.org/2623803002/diff/20001/net/socket/stream_socket.h#newcode34 net/socket/stream_socket.h:34: // Number of ...
3 years, 11 months ago (2017-01-10 23:48:13 UTC) #10
eroman
nice cleanup! lgtm after these comments https://codereview.chromium.org/2623803002/diff/20001/net/socket/client_socket_pool_base.cc File net/socket/client_socket_pool_base.cc (right): https://codereview.chromium.org/2623803002/diff/20001/net/socket/client_socket_pool_base.cc#newcode713 net/socket/client_socket_pool_base.cc:713: StreamSocket::SocketMemoryStats aggregated_stats; Were ...
3 years, 11 months ago (2017-01-11 02:19:59 UTC) #13
xunjieli
Thanks a lot for the reviews! https://codereview.chromium.org/2623803002/diff/20001/net/socket/client_socket_pool_base.cc File net/socket/client_socket_pool_base.cc (right): https://codereview.chromium.org/2623803002/diff/20001/net/socket/client_socket_pool_base.cc#newcode713 net/socket/client_socket_pool_base.cc:713: StreamSocket::SocketMemoryStats aggregated_stats; On ...
3 years, 11 months ago (2017-01-11 20:05:08 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2623803002/80001
3 years, 11 months ago (2017-01-11 20:05:41 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/192483)
3 years, 11 months ago (2017-01-11 20:23:58 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2623803002/80001
3 years, 11 months ago (2017-01-11 21:55:42 UTC) #23
eroman
lgtm https://codereview.chromium.org/2623803002/diff/80001/net/socket/client_socket_handle.h File net/socket/client_socket_handle.h (right): https://codereview.chromium.org/2623803002/diff/80001/net/socket/client_socket_handle.h#newcode127 net/socket/client_socket_handle.h:127: // |stats| and does not increment them. same ...
3 years, 11 months ago (2017-01-11 22:15:14 UTC) #24
xunjieli
Thanks! https://codereview.chromium.org/2623803002/diff/80001/net/socket/client_socket_handle.h File net/socket/client_socket_handle.h (right): https://codereview.chromium.org/2623803002/diff/80001/net/socket/client_socket_handle.h#newcode127 net/socket/client_socket_handle.h:127: // |stats| and does not increment them. On ...
3 years, 11 months ago (2017-01-11 23:19:25 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2623803002/100001
3 years, 11 months ago (2017-01-11 23:21:00 UTC) #29
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 01:13:27 UTC) #32
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/998d24774d5062f8d032fedbe887...

Powered by Google App Engine
This is Rietveld 408576698