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

Issue 2593243003: Add network quality change events to net log (Closed)

Created:
4 years ago by tbansal1
Modified:
3 years, 11 months ago
Reviewers:
bengr, RyanSturm, mmenke, eroman
CC:
chromium-reviews, cbentzel+watch_chromium.org, tbansal+watch-nqe_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add network quality change events to net log If Network Quality Estimator (NQE) determines that network quality has changed, an event is added to the net log. The event includes the effective connection type, http rtt, transport rtt, and throughput. The net log source is set to NETWORK_QUALITY_ESTIMATOR. This is how the net log looks like: t=295473 [st=295473] NETWORK_QUALITY_CHANGED --> downstream_throughput_kbps = 29 --> effective_connection_type = "Slow2G" --> http_rtt_ms = 4691 --> transport_rtt_ms = 1822 BUG=676661 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester Review-Url: https://codereview.chromium.org/2593243003 Cr-Commit-Position: refs/heads/master@{#445153} Committed: https://chromium.googlesource.com/chromium/src/+/97e38a2f826fed6afd6422f44ca291d553adda8c

Patch Set 1 : ps #

Total comments: 26

Patch Set 2 : ryansturm comments #

Total comments: 4

Patch Set 3 : Rebased, using net log source #

Total comments: 8

Patch Set 4 : eroman comments #

Total comments: 2

Patch Set 5 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -29 lines) Patch
M chrome/browser/android/net/external_estimate_provider_android_unittest.cc View 1 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M components/cronet/android/cronet_url_request_context_adapter.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/ios_chrome_io_thread.mm View 1 chunk +2 lines, -1 line 0 comments Download
M net/log/net_log_event_type_list.h View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
M net/log/net_log_source_type_list.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M net/net.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A net/nqe/event_creator.h View 1 1 chunk +39 lines, -0 lines 0 comments Download
A net/nqe/event_creator.cc View 1 2 3 1 chunk +58 lines, -0 lines 0 comments Download
M net/nqe/network_quality_estimator.h View 1 2 3 4 6 chunks +15 lines, -5 lines 0 comments Download
M net/nqe/network_quality_estimator.cc View 1 2 3 4 5 chunks +32 lines, -9 lines 0 comments Download
M net/nqe/network_quality_estimator_test_util.h View 5 chunks +10 lines, -1 line 0 comments Download
M net/nqe/network_quality_estimator_test_util.cc View 1 2 3 3 chunks +24 lines, -4 lines 0 comments Download
M net/nqe/network_quality_estimator_unittest.cc View 1 2 3 4 10 chunks +22 lines, -4 lines 0 comments Download

Messages

Total messages: 77 (51 generated)
tbansal1
ryansturm: ptal. thanks.
3 years, 11 months ago (2017-01-10 01:16:55 UTC) #31
RyanSturm
https://codereview.chromium.org/2593243003/diff/120001/chrome/browser/android/net/external_estimate_provider_android_unittest.cc File chrome/browser/android/net/external_estimate_provider_android_unittest.cc (right): https://codereview.chromium.org/2593243003/diff/120001/chrome/browser/android/net/external_estimate_provider_android_unittest.cc#newcode11 chrome/browser/android/net/external_estimate_provider_android_unittest.cc:11: #include "base/memory/ptr_util.h" Not seeing where ptr_util is used. https://codereview.chromium.org/2593243003/diff/120001/net/nqe/event_creator.cc ...
3 years, 11 months ago (2017-01-10 16:22:38 UTC) #32
tbansal1
ryansturm: ptal. thanks. https://codereview.chromium.org/2593243003/diff/120001/chrome/browser/android/net/external_estimate_provider_android_unittest.cc File chrome/browser/android/net/external_estimate_provider_android_unittest.cc (right): https://codereview.chromium.org/2593243003/diff/120001/chrome/browser/android/net/external_estimate_provider_android_unittest.cc#newcode11 chrome/browser/android/net/external_estimate_provider_android_unittest.cc:11: #include "base/memory/ptr_util.h" On 2017/01/10 16:22:37, Ryan ...
3 years, 11 months ago (2017-01-10 18:27:53 UTC) #33
RyanSturm
lgtm
3 years, 11 months ago (2017-01-10 22:15:44 UTC) #38
tbansal1
bengr: ptal. thanks.
3 years, 11 months ago (2017-01-10 22:18:29 UTC) #40
bengr
https://codereview.chromium.org/2593243003/diff/140001/net/log/net_log_event_type_list.h File net/log/net_log_event_type_list.h (right): https://codereview.chromium.org/2593243003/diff/140001/net/log/net_log_event_type_list.h#newcode3049 net/log/net_log_event_type_list.h:3049: // quality of the network has changed. How often ...
3 years, 11 months ago (2017-01-11 22:13:22 UTC) #41
tbansal1
https://codereview.chromium.org/2593243003/diff/140001/net/log/net_log_event_type_list.h File net/log/net_log_event_type_list.h (right): https://codereview.chromium.org/2593243003/diff/140001/net/log/net_log_event_type_list.h#newcode3049 net/log/net_log_event_type_list.h:3049: // quality of the network has changed. On 2017/01/11 ...
3 years, 11 months ago (2017-01-11 23:25:39 UTC) #42
bengr
lgtm
3 years, 11 months ago (2017-01-12 18:48:39 UTC) #43
tbansal1
mmenke: ptal at chrome/browser/*, components/cronet/*, net/log/. Thanks.
3 years, 11 months ago (2017-01-12 18:51:07 UTC) #45
tbansal1
On 2017/01/12 18:51:07, tbansal1 wrote: > mmenke: ptal at chrome/browser/*, components/cronet/*, net/log/. > Thanks. Also, ...
3 years, 11 months ago (2017-01-12 18:51:56 UTC) #46
mmenke
Just one suggestion https://codereview.chromium.org/2593243003/diff/140001/net/nqe/network_quality_estimator.cc File net/nqe/network_quality_estimator.cc (right): https://codereview.chromium.org/2593243003/diff/140001/net/nqe/network_quality_estimator.cc#newcode231 net/nqe/network_quality_estimator.cc:231: NetLogWithSource::Make(net_log, net::NetLogSourceType::NONE)) {} Seems like these ...
3 years, 11 months ago (2017-01-12 21:40:03 UTC) #47
tbansal1
https://codereview.chromium.org/2593243003/diff/140001/net/nqe/network_quality_estimator.cc File net/nqe/network_quality_estimator.cc (right): https://codereview.chromium.org/2593243003/diff/140001/net/nqe/network_quality_estimator.cc#newcode231 net/nqe/network_quality_estimator.cc:231: NetLogWithSource::Make(net_log, net::NetLogSourceType::NONE)) {} On 2017/01/12 21:40:02, mmenke wrote: > ...
3 years, 11 months ago (2017-01-12 23:12:31 UTC) #48
tbansal1
mmenke, ptal. I have added a net log source. wdyt?
3 years, 11 months ago (2017-01-13 21:31:35 UTC) #49
mmenke
On 2017/01/13 21:31:35, tbansal1 wrote: > mmenke, ptal. I have added a net log source. ...
3 years, 11 months ago (2017-01-13 21:39:51 UTC) #52
mmenke
On 2017/01/13 21:39:51, mmenke wrote: > On 2017/01/13 21:31:35, tbansal1 wrote: > > mmenke, ptal. ...
3 years, 11 months ago (2017-01-18 19:43:06 UTC) #55
tbansal1
Adding eroman@ to reviewer list so that the CL shows up prominently on the codereview ...
3 years, 11 months ago (2017-01-18 20:03:12 UTC) #57
eroman
LGTM. The pattern of using a separate Source for NQE looks fine to me. More ...
3 years, 11 months ago (2017-01-19 23:57:25 UTC) #58
tbansal1
https://codereview.chromium.org/2593243003/diff/160001/net/nqe/event_creator.cc File net/nqe/event_creator.cc (right): https://codereview.chromium.org/2593243003/diff/160001/net/nqe/event_creator.cc#newcode32 net/nqe/event_creator.cc:32: base::IntToString(http_rtt.InMilliseconds()) + " msec"); On 2017/01/19 23:57:24, eroman (slow) ...
3 years, 11 months ago (2017-01-20 01:30:34 UTC) #60
eroman
lgtm https://codereview.chromium.org/2593243003/diff/200001/net/nqe/event_creator.cc File net/nqe/event_creator.cc (right): https://codereview.chromium.org/2593243003/diff/200001/net/nqe/event_creator.cc#newcode31 net/nqe/event_creator.cc:31: dict->SetInteger("http_rtt_ms", http_rtt.InMilliseconds()); [optional] if you care about sub-millisecond ...
3 years, 11 months ago (2017-01-20 01:45:20 UTC) #61
tbansal1
https://codereview.chromium.org/2593243003/diff/200001/net/nqe/event_creator.cc File net/nqe/event_creator.cc (right): https://codereview.chromium.org/2593243003/diff/200001/net/nqe/event_creator.cc#newcode31 net/nqe/event_creator.cc:31: dict->SetInteger("http_rtt_ms", http_rtt.InMilliseconds()); On 2017/01/20 01:45:20, eroman (slow) wrote: > ...
3 years, 11 months ago (2017-01-20 01:48:48 UTC) #62
tbansal1
mmenke: ptal at chrome/browser/io_thread.cc components/cronet/android/cronet_url_request_context_adapter.cc ios/chrome/browser/ios_chrome_io_thread.mm. Thanks.
3 years, 11 months ago (2017-01-20 02:08:09 UTC) #65
mmenke
On 2017/01/20 02:08:09, tbansal1 wrote: > mmenke: ptal at > chrome/browser/io_thread.cc > components/cronet/android/cronet_url_request_context_adapter.cc > ios/chrome/browser/ios_chrome_io_thread.mm. ...
3 years, 11 months ago (2017-01-20 18:28:03 UTC) #69
tbansal1
On 2017/01/20 18:28:03, mmenke wrote: > On 2017/01/20 02:08:09, tbansal1 wrote: > > mmenke: ptal ...
3 years, 11 months ago (2017-01-20 20:21:22 UTC) #70
mmenke
On 2017/01/20 20:21:22, tbansal1 wrote: > On 2017/01/20 18:28:03, mmenke wrote: > > On 2017/01/20 ...
3 years, 11 months ago (2017-01-20 20:26:08 UTC) #71
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/2593243003/220001
3 years, 11 months ago (2017-01-20 20:33:15 UTC) #74
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 20:43:44 UTC) #77
Message was sent while issue was closed.
Committed patchset #5 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/97e38a2f826fed6afd6422f44ca2...

Powered by Google App Engine
This is Rietveld 408576698