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

Issue 811623002: Add logging for slow device events, limit network UI update rate (Closed)

Created:
6 years ago by stevenjb
Modified:
6 years ago
CC:
chromium-reviews, sadrul, stevenjb+watch_chromium.org, oshima+watch_chromium.org, kalyank
Base URL:
https://chromium.googlesource.com/chromium/src.git@patch_441650
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add logging for slow device events, limit network UI update rate This CL does the following: * Cleans up some redundant code in the network UI. * Disassociates Network UI updates from dbus calls and limits the frequency of UI updates by using a timer to trigger updates. * Adds NET_LOG_IF_SLOW to device_event_log.h to log slow network events. Note: I also did virtual/override cleanup while in there and ran clang format on the changed files. BUG=441650 Committed: https://crrev.com/9cfc3f8f868ec7c38f1e5025554c0caf837750a5 Cr-Commit-Position: refs/heads/master@{#309083}

Patch Set 1 #

Patch Set 2 : Rebase, self review #

Total comments: 16

Patch Set 3 : Feedback #

Total comments: 2

Patch Set 4 : Feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+308 lines, -316 lines) Patch
M ash/system/chromeos/network/network_detailed_view.h View 1 chunk +3 lines, -10 lines 0 comments Download
M ash/system/chromeos/network/network_state_list_detailed_view.h View 2 chunks +14 lines, -22 lines 0 comments Download
M ash/system/chromeos/network/network_state_list_detailed_view.cc View 18 chunks +54 lines, -84 lines 0 comments Download
M ash/system/chromeos/network/tray_network.h View 1 chunk +12 lines, -16 lines 0 comments Download
M ash/system/chromeos/network/tray_network.cc View 10 chunks +43 lines, -77 lines 0 comments Download
M ash/system/chromeos/network/tray_network_state_observer.h View 1 3 chunks +15 lines, -15 lines 0 comments Download
M ash/system/chromeos/network/tray_network_state_observer.cc View 1 4 chunks +32 lines, -16 lines 0 comments Download
M ash/system/chromeos/network/tray_vpn.h View 1 chunk +10 lines, -13 lines 0 comments Download
M ash/system/chromeos/network/tray_vpn.cc View 6 chunks +8 lines, -20 lines 0 comments Download
M chromeos/device_event_log.h View 1 2 3 4 chunks +33 lines, -1 line 0 comments Download
M chromeos/device_event_log.cc View 1 2 3 2 chunks +20 lines, -0 lines 0 comments Download
M chromeos/network/network_state_handler.cc View 1 2 8 chunks +9 lines, -0 lines 0 comments Download
M ui/chromeos/DEPS View 1 chunk +1 line, -3 lines 0 comments Download
M ui/chromeos/network/network_list.h View 1 chunk +5 lines, -0 lines 0 comments Download
M ui/chromeos/network/network_list.cc View 1 2 11 chunks +49 lines, -39 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
stevenjb
I tested this and we shouldn't be spending any significant time in the network dbus ...
6 years ago (2014-12-16 01:45:04 UTC) #2
satorux1
took a look at src/chromeos. looks neat. https://codereview.chromium.org/811623002/diff/20001/chromeos/device_event_log.h File chromeos/device_event_log.h (right): https://codereview.chromium.org/811623002/diff/20001/chromeos/device_event_log.h#newcode45 chromeos/device_event_log.h:45: #define NET_LOG_IF_SLOW() ...
6 years ago (2014-12-16 03:29:44 UTC) #3
stevenjb
https://codereview.chromium.org/811623002/diff/20001/chromeos/device_event_log.h File chromeos/device_event_log.h (right): https://codereview.chromium.org/811623002/diff/20001/chromeos/device_event_log.h#newcode45 chromeos/device_event_log.h:45: #define NET_LOG_IF_SLOW() \ On 2014/12/16 03:29:43, satorux1 wrote: > ...
6 years ago (2014-12-16 19:12:58 UTC) #4
satorux1
chromeos/... LGTM. Sorry for the belated response. I was ooo yesterday. https://codereview.chromium.org/811623002/diff/20001/chromeos/device_event_log.h File chromeos/device_event_log.h (right): ...
6 years ago (2014-12-18 05:18:52 UTC) #5
stevenjb
sadrul or oshima, PTAL at ash/ https://codereview.chromium.org/811623002/diff/20001/chromeos/device_event_log.h File chromeos/device_event_log.h (right): https://codereview.chromium.org/811623002/diff/20001/chromeos/device_event_log.h#newcode49 chromeos/device_event_log.h:49: ::chromeos::device_event_log::internal::DeviceLogIfSlow _elapsed_( \ ...
6 years ago (2014-12-18 18:16:17 UTC) #8
oshima
ash lgtm
6 years ago (2014-12-18 18:35:57 UTC) #9
oshima
ash lgtm
6 years ago (2014-12-18 18:35:59 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/811623002/80001
6 years ago (2014-12-18 18:48:31 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:80001)
6 years ago (2014-12-18 22:04:19 UTC) #13
commit-bot: I haz the power
6 years ago (2014-12-18 22:05:45 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/9cfc3f8f868ec7c38f1e5025554c0caf837750a5
Cr-Commit-Position: refs/heads/master@{#309083}

Powered by Google App Engine
This is Rietveld 408576698