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

Issue 1277263002: Add instrumentation to track the IceEndpointType. (Closed)

Created:
5 years, 4 months ago by guoweis_webrtc
Modified:
5 years, 4 months ago
Reviewers:
pthatcher2, juberti1, pthatcher1, webrtc-network
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, rwolff_gocast.it, yujie_mao (webrtc), Andrew MacDonald, tterriberry_mozilla.com, qiang.lu, niklas.enbom
Base URL:
https://chromium.googlesource.com/external/webrtc@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add instrumentation to track the IceEndpointType. The IceEndpointType has the format of <local_endpoint>_<remote_endpoint>. It is recorded on the BestConnection when we have the first OnTransportCompleted signaled. BUG=webrtc:4918 R=pthatcher@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/3d564c10157d7de1d2d4236f4e2a13ff1363d52b

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Total comments: 3

Patch Set 5 : #

Total comments: 44

Patch Set 6 : #

Total comments: 8

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Total comments: 1

Patch Set 11 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -50 lines) Patch
M talk/app/webrtc/fakemetricsobserver.h View 1 2 3 4 5 2 chunks +8 lines, -4 lines 0 comments Download
M talk/app/webrtc/fakemetricsobserver.cc View 1 2 3 4 5 6 7 8 9 2 chunks +18 lines, -5 lines 2 comments Download
M talk/app/webrtc/objc/RTCEnumConverter.mm View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M talk/app/webrtc/objc/public/RTCTypes.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M talk/app/webrtc/peerconnectioninterface.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +15 lines, -1 line 0 comments Download
M talk/app/webrtc/umametrics.h View 1 2 3 4 5 6 3 chunks +43 lines, -7 lines 0 comments Download
M talk/app/webrtc/webrtcsession.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +83 lines, -4 lines 0 comments Download
M talk/app/webrtc/webrtcsession_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +10 lines, -2 lines 0 comments Download
M webrtc/p2p/base/candidate.h View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M webrtc/p2p/base/port.h View 1 2 3 1 chunk +7 lines, -3 lines 0 comments Download
M webrtc/p2p/base/port.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/p2p/base/port_unittest.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M webrtc/p2p/base/relayport.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M webrtc/p2p/base/stunport.cc View 1 2 3 4 2 chunks +5 lines, -6 lines 0 comments Download
M webrtc/p2p/base/stunport_unittest.cc View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M webrtc/p2p/base/tcpport.cc View 1 2 3 4 2 chunks +8 lines, -9 lines 0 comments Download
M webrtc/p2p/base/turnport.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/p2p/base/turnport_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -0 lines 1 comment Download
M webrtc/p2p/client/connectivitychecker_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 38 (16 generated)
guoweis_webrtc
PTAL.
5 years, 4 months ago (2015-08-14 20:54:17 UTC) #2
juberti1
https://codereview.webrtc.org/1277263002/diff/40001/webrtc/p2p/base/candidate.h File webrtc/p2p/base/candidate.h (right): https://codereview.webrtc.org/1277263002/diff/40001/webrtc/p2p/base/candidate.h#newcode75 webrtc/p2p/base/candidate.h:75: const std::string& first_hop_protocol() const { Rather than duplicating the ...
5 years, 4 months ago (2015-08-14 21:04:59 UTC) #3
guoweis_webrtc
On 2015/08/14 21:04:59, juberti1 wrote: > https://codereview.webrtc.org/1277263002/diff/40001/webrtc/p2p/base/candidate.h > File webrtc/p2p/base/candidate.h (right): > > https://codereview.webrtc.org/1277263002/diff/40001/webrtc/p2p/base/candidate.h#newcode75 > ...
5 years, 4 months ago (2015-08-14 21:14:38 UTC) #4
juberti1
https://codereview.webrtc.org/1277263002/diff/60001/talk/app/webrtc/umametrics.h File talk/app/webrtc/umametrics.h (right): https://codereview.webrtc.org/1277263002/diff/60001/talk/app/webrtc/umametrics.h#newcode38 talk/app/webrtc/umametrics.h:38: kPeerConnectionEnumCounter_IceEndpointTypeUDP, UDP -> Udp TCP -> Tcp Can you ...
5 years, 4 months ago (2015-08-14 21:26:04 UTC) #5
guoweis_webrtc
On 2015/08/14 21:26:04, juberti1 wrote: > https://codereview.webrtc.org/1277263002/diff/60001/talk/app/webrtc/umametrics.h > File talk/app/webrtc/umametrics.h (right): > > https://codereview.webrtc.org/1277263002/diff/60001/talk/app/webrtc/umametrics.h#newcode38 > ...
5 years, 4 months ago (2015-08-16 17:54:34 UTC) #13
guoweis_webrtc
On 2015/08/16 17:54:34, guoweis wrote: > On 2015/08/14 21:26:04, juberti1 wrote: > > > https://codereview.webrtc.org/1277263002/diff/60001/talk/app/webrtc/umametrics.h ...
5 years, 4 months ago (2015-08-18 17:14:12 UTC) #14
guoweis_webrtc
5 years, 4 months ago (2015-08-18 17:21:33 UTC) #16
pthatcher1
https://codereview.webrtc.org/1277263002/diff/220001/talk/app/webrtc/fakemetricsobserver.cc File talk/app/webrtc/fakemetricsobserver.cc (right): https://codereview.webrtc.org/1277263002/diff/220001/talk/app/webrtc/fakemetricsobserver.cc#newcode53 talk/app/webrtc/fakemetricsobserver.cc:53: } Why not just initialize the size in the ...
5 years, 4 months ago (2015-08-18 18:06:23 UTC) #17
guoweis_webrtc
PTAL. https://codereview.webrtc.org/1277263002/diff/220001/talk/app/webrtc/fakemetricsobserver.cc File talk/app/webrtc/fakemetricsobserver.cc (right): https://codereview.webrtc.org/1277263002/diff/220001/talk/app/webrtc/fakemetricsobserver.cc#newcode53 talk/app/webrtc/fakemetricsobserver.cc:53: } On 2015/08/18 18:06:22, pthatcher1 wrote: > Why ...
5 years, 4 months ago (2015-08-18 22:33:57 UTC) #19
pthatcher1
Mostly style/readability things now. And the bounds check. I think we need to add one ...
5 years, 4 months ago (2015-08-19 02:47:53 UTC) #20
guoweis_webrtc
On 2015/08/19 02:47:53, pthatcher1 wrote: > Mostly style/readability things now. > > And the bounds ...
5 years, 4 months ago (2015-08-19 17:56:52 UTC) #21
guoweis_webrtc
PTAL. Hope I didn't miss anything here. https://codereview.webrtc.org/1277263002/diff/220001/talk/app/webrtc/webrtcsession.cc File talk/app/webrtc/webrtcsession.cc (right): https://codereview.webrtc.org/1277263002/diff/220001/talk/app/webrtc/webrtcsession.cc#newcode1966 talk/app/webrtc/webrtcsession.cc:1966: DCHECK(0); On ...
5 years, 4 months ago (2015-08-19 18:25:52 UTC) #23
pthatcher2
Sooooo clooooose https://codereview.webrtc.org/1277263002/diff/220001/talk/app/webrtc/fakemetricsobserver.cc File talk/app/webrtc/fakemetricsobserver.cc (right): https://codereview.webrtc.org/1277263002/diff/220001/talk/app/webrtc/fakemetricsobserver.cc#newcode76 talk/app/webrtc/fakemetricsobserver.cc:76: return counters_[type][counter]; On 2015/08/19 02:47:52, pthatcher1 wrote: ...
5 years, 4 months ago (2015-08-19 18:39:42 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1277263002/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1277263002/340001
5 years, 4 months ago (2015-08-19 19:01:39 UTC) #27
guoweis_webrtc
PTAL. Changed from DCHECK to CHECK. https://codereview.webrtc.org/1277263002/diff/300001/talk/app/webrtc/webrtcsession.cc File talk/app/webrtc/webrtcsession.cc (right): https://codereview.webrtc.org/1277263002/diff/300001/talk/app/webrtc/webrtcsession.cc#newcode101 talk/app/webrtc/webrtcsession.cc:101: return kIceCandidatePairHostHost; On ...
5 years, 4 months ago (2015-08-19 19:03:24 UTC) #28
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_rel/builds/9067)
5 years, 4 months ago (2015-08-19 19:04:51 UTC) #30
pthatcher1
lgtm, except for this one enum thing https://codereview.webrtc.org/1277263002/diff/350018/talk/app/webrtc/objc/public/RTCTypes.h File talk/app/webrtc/objc/public/RTCTypes.h (right): https://codereview.webrtc.org/1277263002/diff/350018/talk/app/webrtc/objc/public/RTCTypes.h#newcode40 talk/app/webrtc/objc/public/RTCTypes.h:40: } RTCICEConnectionState; ...
5 years, 4 months ago (2015-08-19 19:24:20 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1277263002/350018 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1277263002/350018
5 years, 4 months ago (2015-08-19 19:28:39 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1277263002/370001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1277263002/370001
5 years, 4 months ago (2015-08-19 21:20:19 UTC) #35
guoweis_webrtc
Committed patchset #11 (id:370001) manually as 3d564c10157d7de1d2d4236f4e2a13ff1363d52b (presubmit successful).
5 years, 4 months ago (2015-08-19 23:51:28 UTC) #36
juberti1
lgtm, just a few minor comments https://codereview.webrtc.org/1277263002/diff/370001/talk/app/webrtc/fakemetricsobserver.cc File talk/app/webrtc/fakemetricsobserver.cc (right): https://codereview.webrtc.org/1277263002/diff/370001/talk/app/webrtc/fakemetricsobserver.cc#newcode39 talk/app/webrtc/fakemetricsobserver.cc:39: counters_ = std::vector<std::vector<int>>(); ...
5 years, 4 months ago (2015-08-20 23:14:25 UTC) #37
guoweis_webrtc
5 years, 4 months ago (2015-08-21 13:47:07 UTC) #38
Message was sent while issue was closed.
On 2015/08/20 23:14:25, juberti1 wrote:
> lgtm, just a few minor comments
> 
>
https://codereview.webrtc.org/1277263002/diff/370001/talk/app/webrtc/fakemetr...
> File talk/app/webrtc/fakemetricsobserver.cc (right):
> 
>
https://codereview.webrtc.org/1277263002/diff/370001/talk/app/webrtc/fakemetr...
> talk/app/webrtc/fakemetricsobserver.cc:39: counters_ =
> std::vector<std::vector<int>>();
> this could be done via counters_.clear(), I think
> 
>
https://codereview.webrtc.org/1277263002/diff/370001/talk/app/webrtc/fakemetr...
> talk/app/webrtc/fakemetricsobserver.cc:49: int counter_max) {
> I don't understand why we need to pass in a maximum here. It seems unnecessary
> and forces us to add Max entries to enums that don't really need them.
This is standard UMA interface.
https://code.google.com/p/chromium/codesearch#chromium/src/base/metrics/histo...

> 
>
https://codereview.webrtc.org/1277263002/diff/370001/webrtc/p2p/base/turnport...
> File webrtc/p2p/base/turnport_unittest.cc (right):
> 
>
https://codereview.webrtc.org/1277263002/diff/370001/webrtc/p2p/base/turnport...
> webrtc/p2p/base/turnport_unittest.cc:737:
> EXPECT_EQ(turn_port_->Candidates()[0].relay_protocol(),
> expected value comes first in EXPECT_EQ (here and below)

Will do other clean ups later.

Powered by Google App Engine
This is Rietveld 408576698