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

Issue 1156143005: Report metrics about negotiated ciphers. (Closed)

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

Description

Report metrics about negotiated ciphers. This CL adds an API to the metrics observer interface to report negotiated ciphers for WebRTC sessions. This can be used from Chromium for UMA metrics later to get an idea which cipher suites are used by clients (e.g. compare the use of DTLS 1.0 / 1.2). BUG=428343 Committed: https://crrev.com/ac8869ec5a606e0a0ab71e70937c8fbf403630ce Cr-Commit-Position: refs/heads/master@{#9537}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebased and updated calling of GetStats #

Patch Set 3 : Overload "AddHistogramSample" to store metrics. #

Total comments: 2

Patch Set 4 : Removed unnecessary semicolon. #

Patch Set 5 : Fix path to new file in GYP script. #

Total comments: 2

Patch Set 6 : Renamed properties and provide accessors. #

Total comments: 10

Patch Set 7 : Feedback from tommi #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -67 lines) Patch
A + talk/app/webrtc/fakemetricsobserver.h View 1 2 3 4 5 6 1 chunk +26 lines, -17 lines 0 comments Download
A talk/app/webrtc/fakemetricsobserver.cc View 1 2 3 4 5 6 1 chunk +81 lines, -0 lines 0 comments Download
M talk/app/webrtc/peerconnection_unittest.cc View 1 2 3 4 5 6 5 chunks +37 lines, -0 lines 0 comments Download
M talk/app/webrtc/peerconnectioninterface.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M talk/app/webrtc/umametrics.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M talk/app/webrtc/webrtcsession.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M talk/app/webrtc/webrtcsession.cc View 1 2 3 4 5 6 4 chunks +47 lines, -12 lines 0 comments Download
M talk/app/webrtc/webrtcsession_unittest.cc View 1 2 3 4 5 6 8 chunks +11 lines, -37 lines 0 comments Download
M talk/libjingle_tests.gyp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (13 generated)
joachim
PTAL, this can be used from Chromium for UMA metrics later.
5 years, 6 months ago (2015-06-05 15:05:05 UTC) #2
juberti1
On 2015/06/05 15:05:05, joachim wrote: > PTAL, this can be used from Chromium for UMA ...
5 years, 6 months ago (2015-06-06 00:16:00 UTC) #3
juberti1
+guowei who has done similar metrics in the past https://codereview.webrtc.org/1156143005/diff/1/talk/app/webrtc/peerconnectioninterface.h File talk/app/webrtc/peerconnectioninterface.h (right): https://codereview.webrtc.org/1156143005/diff/1/talk/app/webrtc/peerconnectioninterface.h#newcode131 talk/app/webrtc/peerconnectioninterface.h:131: ...
5 years, 6 months ago (2015-06-06 00:18:41 UTC) #5
guoweis_webrtc
https://codereview.webrtc.org/1156143005/diff/1/talk/app/webrtc/webrtcsession.cc File talk/app/webrtc/webrtcsession.cc (right): https://codereview.webrtc.org/1156143005/diff/1/talk/app/webrtc/webrtcsession.cc#newcode1396 talk/app/webrtc/webrtcsession.cc:1396: ReportNegotiatedCiphers(transport); Both ReportBestConnectionState and ReportNegotiatedCiphers call GetStats internally. I ...
5 years, 6 months ago (2015-06-08 17:09:12 UTC) #6
joachim
Thanks for your feedback, I also updated the description of the CL. https://codereview.webrtc.org/1156143005/diff/1/talk/app/webrtc/peerconnectioninterface.h File talk/app/webrtc/peerconnectioninterface.h ...
5 years, 6 months ago (2015-06-08 20:58:40 UTC) #7
joachim
Sorry for the delay, I now also updated the CL to use a more general ...
5 years, 6 months ago (2015-06-22 21:13:18 UTC) #8
joachim
ping?
5 years, 5 months ago (2015-06-29 21:07:54 UTC) #9
tommi
lgtm https://codereview.webrtc.org/1156143005/diff/40001/talk/app/webrtc/peerconnectioninterface.h File talk/app/webrtc/peerconnectioninterface.h (right): https://codereview.webrtc.org/1156143005/diff/40001/talk/app/webrtc/peerconnectioninterface.h#newcode132 talk/app/webrtc/peerconnectioninterface.h:132: const std::string& value) {}; remove semicolon
5 years, 5 months ago (2015-06-30 12:42:51 UTC) #11
joachim
Thanks for your review. https://codereview.chromium.org/1156143005/diff/40001/talk/app/webrtc/peerconnectioninterface.h File talk/app/webrtc/peerconnectioninterface.h (right): https://codereview.chromium.org/1156143005/diff/40001/talk/app/webrtc/peerconnectioninterface.h#newcode132 talk/app/webrtc/peerconnectioninterface.h:132: const std::string& value) {}; On ...
5 years, 5 months ago (2015-06-30 16:06:38 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1156143005/60001
5 years, 5 months ago (2015-06-30 16:21:12 UTC) #15
commit-bot: I haz the power
Dry run: Exceeded global retry quota
5 years, 5 months ago (2015-06-30 16:23:11 UTC) #17
joachim
Tommi, anything I need to take care of to get the Windows trybots pick up ...
5 years, 5 months ago (2015-06-30 16:34:40 UTC) #18
joachim
Oh stupid me, the path in the GYP file was wrong. Interesting that this does ...
5 years, 5 months ago (2015-06-30 19:04:24 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1156143005/80001
5 years, 5 months ago (2015-06-30 19:38:21 UTC) #22
commit-bot: I haz the power
Dry run: Exceeded global retry quota
5 years, 5 months ago (2015-06-30 20:41:36 UTC) #24
juberti1
One moderate change requested. https://codereview.webrtc.org/1156143005/diff/80001/talk/app/webrtc/fakemetricsobserver.h File talk/app/webrtc/fakemetricsobserver.h (right): https://codereview.webrtc.org/1156143005/diff/80001/talk/app/webrtc/fakemetricsobserver.h#newcode66 talk/app/webrtc/fakemetricsobserver.h:66: int peer_connection_metrics_name_[kPeerConnectionMetricsCounter_Max]; Realize that you ...
5 years, 5 months ago (2015-07-01 02:06:15 UTC) #25
joachim
https://codereview.webrtc.org/1156143005/diff/80001/talk/app/webrtc/fakemetricsobserver.h File talk/app/webrtc/fakemetricsobserver.h (right): https://codereview.webrtc.org/1156143005/diff/80001/talk/app/webrtc/fakemetricsobserver.h#newcode66 talk/app/webrtc/fakemetricsobserver.h:66: int peer_connection_metrics_name_[kPeerConnectionMetricsCounter_Max]; On 2015/07/01 02:06:15, juberti1 wrote: > Realize ...
5 years, 5 months ago (2015-07-01 14:18:42 UTC) #26
tommi (sloooow) - chröme
https://codereview.chromium.org/1156143005/diff/100001/talk/app/webrtc/fakemetricsobserver.h File talk/app/webrtc/fakemetricsobserver.h (right): https://codereview.chromium.org/1156143005/diff/100001/talk/app/webrtc/fakemetricsobserver.h#newcode41 talk/app/webrtc/fakemetricsobserver.h:41: void Reset() { Is this method necessary? (can we ...
5 years, 5 months ago (2015-07-02 11:32:29 UTC) #27
joachim
@tommi: Thanks for your feedback. Almost all of that code already existed before in "webrtcsession_unittest.cc", ...
5 years, 5 months ago (2015-07-02 11:51:59 UTC) #28
joachim
All done. https://codereview.chromium.org/1156143005/diff/100001/talk/app/webrtc/fakemetricsobserver.h File talk/app/webrtc/fakemetricsobserver.h (right): https://codereview.chromium.org/1156143005/diff/100001/talk/app/webrtc/fakemetricsobserver.h#newcode41 talk/app/webrtc/fakemetricsobserver.h:41: void Reset() { On 2015/07/02 11:32:29, tommi ...
5 years, 5 months ago (2015-07-02 22:06:06 UTC) #29
juberti1
lgtm
5 years, 5 months ago (2015-07-03 02:31:07 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1156143005/120001
5 years, 5 months ago (2015-07-03 07:24:30 UTC) #33
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-03 08:14:04 UTC) #35
tommi
lgtm
5 years, 5 months ago (2015-07-03 08:35:00 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1156143005/120001
5 years, 5 months ago (2015-07-03 08:35:18 UTC) #38
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 5 months ago (2015-07-03 08:36:19 UTC) #39
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/ac8869ec5a606e0a0ab71e70937c8fbf403630ce Cr-Commit-Position: refs/heads/master@{#9537}
5 years, 5 months ago (2015-07-03 08:36:29 UTC) #40
andresp
On 2015/07/03 08:36:29, commit-bot: I haz the power wrote: > Patchset 7 (id:??) landed as ...
5 years, 5 months ago (2015-07-04 09:55:42 UTC) #41
guoweis_webrtc
5 years, 3 months ago (2015-09-10 22:07:19 UTC) #42
Message was sent while issue was closed.
On 2015/07/04 09:55:42, andresp wrote:
> On 2015/07/03 08:36:29, commit-bot: I haz the power wrote:
> > Patchset 7 (id:??) landed as
> > https://crrev.com/ac8869ec5a606e0a0ab71e70937c8fbf403630ce
> > Cr-Commit-Position: refs/heads/master@{#9537}
> 
> Just came across this.... are you familiar with
> webrtc/system_wrappers/interface/metrics.h ?
> It allows one to directly export uma histograms from webrtc without having to
> wire things such as metric observers or so...

I realized that what's been done in this CL for metric reporting is not
supported in chrome. The histogram has to be an integer, can't be a string. 

For all types of cipher that we could run into, is there is a list for that?
AES_CM_128_HMAC_SHA1_80
AES_CM_128_HMAC_SHA1_32

Anything else? these 2 are from NSSS and OpenSSL.

Powered by Google App Engine
This is Rietveld 408576698