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

Issue 677473002: Implement UMA and internal data structure for tracking EWOULDBLOCK. (Closed)

Created:
6 years, 2 months ago by guoweis_left_chromium
Modified:
6 years, 1 month ago
CC:
chromium-reviews, mkwst+moarreviews-renderer_chromium.org, darin-cc_chromium.org, jam, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Implement UMA and internal data structure for tracking EWOULDBLOCK. There are currently 2 sources of EWOULDBLOCK. One is from the system which we don't have any monitoring in place. The other is generated by the socket implementation of WebRTC. This change adds UMA for both places. The UMAs added here are 1. max consecutive EWOULDBLOCK that we receive from the system. It's protocol dependent. 2. max consecutive EWOULDBLOCK that WebRTC socket generates. Protocol independent. 3. % of packet loss in WebRTC socket layer due to its own EWOULDBLOCK generation. Protocol independent. Tested in a call and the dtor is invoked when a call is terminated. However, if a user just closes the renderer abruptly, the dtor is not invoked such that these UMA data points will be lost. BUG=427555 Committed: https://crrev.com/fd669ae63f860c24399867d79dcbcca528c13b6f Cr-Commit-Position: refs/heads/master@{#301575}

Patch Set 1 #

Total comments: 10

Patch Set 2 : #

Total comments: 10

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 10

Patch Set 5 : #

Total comments: 5

Patch Set 6 : #

Total comments: 14

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -9 lines) Patch
M content/browser/renderer_host/p2p/socket_host.h View 1 2 3 4 5 4 chunks +25 lines, -1 line 0 comments Download
M content/browser/renderer_host/p2p/socket_host.cc View 1 2 3 4 5 3 chunks +50 lines, -3 lines 0 comments Download
M content/browser/renderer_host/p2p/socket_host_tcp.cc View 1 2 3 4 5 3 chunks +6 lines, -1 line 0 comments Download
M content/browser/renderer_host/p2p/socket_host_tcp_server.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/p2p/socket_host_udp.cc View 1 2 3 4 5 3 chunks +8 lines, -2 lines 0 comments Download
M content/renderer/p2p/ipc_socket_factory.cc View 1 2 3 4 5 6 8 chunks +41 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 3 chunks +41 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (5 generated)
guoweis2
Please take a look.
6 years, 2 months ago (2014-10-23 18:36:26 UTC) #2
juberti2
Overall this LG. For jmidata, we'll want to track this in cricket::Connection as well. https://codereview.chromium.org/677473002/diff/1/content/browser/renderer_host/p2p/socket_host_tcp.cc ...
6 years, 2 months ago (2014-10-23 19:38:47 UTC) #3
guoweis2
PTAL. I'm using UMA_HISTOGRAM_COUNTS_10000 to track the consecutive discarded bytes. Do you think it might ...
6 years, 2 months ago (2014-10-24 06:08:55 UTC) #5
guoweis2
I'd like to roll this into M39. Would appreciate it if you could review it ...
6 years, 1 month ago (2014-10-27 17:25:26 UTC) #7
Alexei Svitkine (slow)
If you're planning to merge this back, this probably should have a crbug.com. https://codereview.chromium.org/677473002/diff/40001/content/browser/renderer_host/p2p/socket_host.cc File ...
6 years, 1 month ago (2014-10-27 17:45:21 UTC) #8
guoweis2
PTAL https://codereview.chromium.org/677473002/diff/40001/content/browser/renderer_host/p2p/socket_host.cc File content/browser/renderer_host/p2p/socket_host.cc (right): https://codereview.chromium.org/677473002/diff/40001/content/browser/renderer_host/p2p/socket_host.cc#newcode675 content/browser/renderer_host/p2p/socket_host.cc:675: } On 2014/10/27 17:45:21, Alexei Svitkine wrote: > ...
6 years, 1 month ago (2014-10-27 18:07:07 UTC) #9
Alexei Svitkine (slow)
histograms LGTM, but I'll leave it to your other reviewers to verify the core logic ...
6 years, 1 month ago (2014-10-27 18:10:05 UTC) #10
guoweis2
On 2014/10/27 18:10:05, Alexei Svitkine wrote: > histograms LGTM, but I'll leave it to your ...
6 years, 1 month ago (2014-10-27 18:14:09 UTC) #11
juberti2
lgtm with name updates https://codereview.chromium.org/677473002/diff/80001/content/browser/renderer_host/p2p/socket_host.cc File content/browser/renderer_host/p2p/socket_host.cc (right): https://codereview.chromium.org/677473002/diff/80001/content/browser/renderer_host/p2p/socket_host.cc#newcode484 content/browser/renderer_host/p2p/socket_host.cc:484: int loss_rate = (send_packets_delayed_total_ * ...
6 years, 1 month ago (2014-10-27 22:24:29 UTC) #12
guoweis2
Hi, I'd like to get this in tonight to catch M39 beta train tomorrow. jamesr@ ...
6 years, 1 month ago (2014-10-27 22:53:19 UTC) #14
davidben
https://codereview.chromium.org/677473002/diff/100001/content/browser/renderer_host/p2p/socket_host.cc File content/browser/renderer_host/p2p/socket_host.cc (right): https://codereview.chromium.org/677473002/diff/100001/content/browser/renderer_host/p2p/socket_host.cc#newcode473 content/browser/renderer_host/p2p/socket_host.cc:473: DCHECK(protocol_type_ != P2PSocketHost::UNKNOWN); Nit: DCHECK_NE(protocol_type_, P2pSocketHost::UNKNOWN); ? https://codereview.chromium.org/677473002/diff/100001/content/browser/renderer_host/p2p/socket_host.cc#newcode473 content/browser/renderer_host/p2p/socket_host.cc:473: ...
6 years, 1 month ago (2014-10-27 23:20:26 UTC) #15
guoweis2
PTAL https://codereview.chromium.org/677473002/diff/100001/content/browser/renderer_host/p2p/socket_host.cc File content/browser/renderer_host/p2p/socket_host.cc (right): https://codereview.chromium.org/677473002/diff/100001/content/browser/renderer_host/p2p/socket_host.cc#newcode473 content/browser/renderer_host/p2p/socket_host.cc:473: DCHECK(protocol_type_ != P2PSocketHost::UNKNOWN); On 2014/10/27 23:20:26, David Benjamin ...
6 years, 1 month ago (2014-10-27 23:48:49 UTC) #16
davidben
patch set 6 lgtm
6 years, 1 month ago (2014-10-28 00:11:14 UTC) #17
jamesr
https://codereview.chromium.org/677473002/diff/120001/content/renderer/p2p/ipc_socket_factory.cc File content/renderer/p2p/ipc_socket_factory.cc (right): https://codereview.chromium.org/677473002/diff/120001/content/renderer/p2p/ipc_socket_factory.cc#newcode118 content/renderer/p2p/ipc_socket_factory.cc:118: // Keep track of the max discarded byte sequence ...
6 years, 1 month ago (2014-10-28 00:24:15 UTC) #18
guoweis2
On 2014/10/28 00:24:15, jamesr wrote: > https://codereview.chromium.org/677473002/diff/120001/content/renderer/p2p/ipc_socket_factory.cc > File content/renderer/p2p/ipc_socket_factory.cc (right): > > https://codereview.chromium.org/677473002/diff/120001/content/renderer/p2p/ipc_socket_factory.cc#newcode118 > ...
6 years, 1 month ago (2014-10-28 04:43:58 UTC) #19
guoweis2
https://codereview.chromium.org/677473002/diff/120001/content/renderer/p2p/ipc_socket_factory.cc File content/renderer/p2p/ipc_socket_factory.cc (right): https://codereview.chromium.org/677473002/diff/120001/content/renderer/p2p/ipc_socket_factory.cc#newcode118 content/renderer/p2p/ipc_socket_factory.cc:118: // Keep track of the max discarded byte sequence ...
6 years, 1 month ago (2014-10-28 04:44:10 UTC) #20
jamesr
lgtm
6 years, 1 month ago (2014-10-28 04:46:23 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/677473002/140001
6 years, 1 month ago (2014-10-28 05:11:22 UTC) #23
commit-bot: I haz the power
Committed patchset #7 (id:140001)
6 years, 1 month ago (2014-10-28 06:29:09 UTC) #24
commit-bot: I haz the power
6 years, 1 month ago (2014-10-28 06:30:04 UTC) #25
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/fd669ae63f860c24399867d79dcbcca528c13b6f
Cr-Commit-Position: refs/heads/master@{#301575}

Powered by Google App Engine
This is Rietveld 408576698