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

Issue 1962393004: Added a debug info UI for Blimp (Closed)

Created:
4 years, 7 months ago by shaktisahu
Modified:
4 years, 2 months ago
Reviewers:
Khushal, vmpstr, Kevin M
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added a debug info UI for Blimp Added a menu option in toolbar to show/hide debug info. When enabled, an overlay debug UI would be shown on the bottom left of the screen showing number of commits, and kilobytes sent and received by the client. This data is reset when the user moves away or is redirected to a new page. BUG=594423 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/03e5b0d97aa1fc6e813725465142978896ed8641 Cr-Commit-Position: refs/heads/master@{#395931}

Patch Set 1 #

Total comments: 13

Patch Set 2 : Built debug UI #

Total comments: 44

Patch Set 3 : #

Patch Set 4 : Added ToolbarDelegate #

Patch Set 5 : Refactored menu into ToolbarMenu #

Total comments: 12

Patch Set 6 : Addressed Kevin's comments #

Total comments: 79

Patch Set 7 : Changed implementation to receive synchronous calls #

Total comments: 56

Patch Set 8 : Addressed Kevin's comments #

Total comments: 15

Patch Set 9 : Added statistics object to BlimpEngineSession #

Total comments: 11

Patch Set 10 : Addressed nits #

Patch Set 11 : rebase #

Patch Set 12 : Added empty implementation for linux client #

Unified diffs Side-by-side diffs Delta from patch set Stats (+762 lines, -178 lines) Patch
M blimp/client/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M blimp/client/app/android/blimp_client_session_android.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
M blimp/client/app/android/blimp_client_session_android.cc View 1 2 3 4 5 6 7 1 chunk +12 lines, -0 lines 0 comments Download
M blimp/client/app/android/blimp_view.h View 1 2 3 4 5 6 7 4 chunks +7 lines, -1 line 0 comments Download
M blimp/client/app/android/blimp_view.cc View 1 2 3 4 5 6 4 chunks +11 lines, -3 lines 0 comments Download
M blimp/client/app/android/java/res/layout/blimp_main.xml View 1 1 chunk +18 lines, -10 lines 0 comments Download
A blimp/client/app/android/java/res/layout/debug_stats_overlay.xml View 1 2 3 4 5 6 7 8 9 1 chunk +50 lines, -0 lines 0 comments Download
M blimp/client/app/android/java/src/org/chromium/blimp/BlimpRendererActivity.java View 1 2 3 4 5 6 7 8 9 8 chunks +79 lines, -6 lines 0 comments Download
M blimp/client/app/android/java/src/org/chromium/blimp/session/BlimpClientSession.java View 1 2 3 4 5 6 2 chunks +17 lines, -0 lines 0 comments Download
M blimp/client/app/android/java/src/org/chromium/blimp/toolbar/Toolbar.java View 1 2 3 4 5 6 7 8 9 10 7 chunks +44 lines, -98 lines 0 comments Download
A blimp/client/app/android/java/src/org/chromium/blimp/toolbar/ToolbarMenu.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +195 lines, -0 lines 0 comments Download
M blimp/client/app/android/java/strings/android_blimp_strings.grd View 1 1 chunk +15 lines, -0 lines 0 comments Download
M blimp/client/app/linux/blimp_display_manager.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M blimp/client/app/linux/blimp_display_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M blimp/client/feature/compositor/blimp_compositor.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M blimp/client/feature/compositor/blimp_compositor.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M blimp/client/feature/compositor/blimp_compositor_manager.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M blimp/client/feature/compositor/blimp_compositor_manager.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M blimp/client/feature/compositor/blimp_compositor_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M blimp/client/session/blimp_client_session.h View 1 2 3 4 5 6 7 8 9 3 chunks +7 lines, -0 lines 0 comments Download
M blimp/client/session/blimp_client_session.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +24 lines, -11 lines 0 comments Download
M blimp/engine/session/blimp_engine_session.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +4 lines, -1 line 0 comments Download
M blimp/net/BUILD.gn View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M blimp/net/blimp_connection.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M blimp/net/blimp_connection.cc View 1 2 3 4 5 6 7 3 chunks +1 line, -6 lines 0 comments Download
A blimp/net/blimp_connection_statistics.h View 1 2 3 4 5 6 7 8 9 1 chunk +48 lines, -0 lines 0 comments Download
A blimp/net/blimp_connection_statistics.cc View 1 2 3 4 5 6 7 8 1 chunk +26 lines, -0 lines 0 comments Download
A blimp/net/blimp_connection_statistics_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +39 lines, -0 lines 0 comments Download
M blimp/net/ssl_client_transport.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M blimp/net/ssl_client_transport.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M blimp/net/ssl_client_transport_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -1 line 0 comments Download
M blimp/net/stream_packet_reader.h View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -1 line 0 comments Download
M blimp/net/stream_packet_reader.cc View 1 2 3 4 5 6 7 3 chunks +8 lines, -2 lines 0 comments Download
M blimp/net/stream_packet_reader_unittest.cc View 1 2 3 4 5 6 7 6 chunks +11 lines, -3 lines 0 comments Download
M blimp/net/stream_packet_writer.h View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -1 line 0 comments Download
M blimp/net/stream_packet_writer.cc View 1 2 3 4 5 6 7 8 9 3 chunks +7 lines, -1 line 0 comments Download
M blimp/net/stream_packet_writer_unittest.cc View 1 2 3 4 5 6 7 6 chunks +10 lines, -3 lines 0 comments Download
M blimp/net/stream_socket_connection.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M blimp/net/stream_socket_connection.cc View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -5 lines 0 comments Download
M blimp/net/tcp_client_transport.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -1 line 0 comments Download
M blimp/net/tcp_client_transport.cc View 1 2 3 4 5 6 7 8 9 3 chunks +8 lines, -2 lines 0 comments Download
M blimp/net/tcp_engine_transport.h View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -2 lines 0 comments Download
M blimp/net/tcp_engine_transport.cc View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -3 lines 0 comments Download
M blimp/net/tcp_transport_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +12 lines, -5 lines 0 comments Download
M cc/trees/remote_channel_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/remote_channel_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +11 lines, -1 line 0 comments Download
M cc/trees/remote_channel_unittest.cc View 1 2 3 4 5 6 2 chunks +19 lines, -7 lines 0 comments Download

Messages

Total messages: 59 (27 generated)
shaktisahu
On 2016/05/10 23:15:31, shaktisahu wrote: > Description was changed from > > ========== > Rough ...
4 years, 7 months ago (2016-05-10 23:29:32 UTC) #2
Kevin M
https://codereview.chromium.org/1962393004/diff/1/blimp/client/feature/compositor/blimp_compositor.cc File blimp/client/feature/compositor/blimp_compositor.cc (right): https://codereview.chromium.org/1962393004/diff/1/blimp/client/feature/compositor/blimp_compositor.cc#newcode110 blimp/client/feature/compositor/blimp_compositor.cc:110: VLOG(0) << "commit completed, current count " << ++commit_count_; ...
4 years, 7 months ago (2016-05-10 23:54:24 UTC) #4
shaktisahu
https://codereview.chromium.org/1962393004/diff/1/blimp/net/blimp_connection_details.h File blimp/net/blimp_connection_details.h (right): https://codereview.chromium.org/1962393004/diff/1/blimp/net/blimp_connection_details.h#newcode13 blimp/net/blimp_connection_details.h:13: class NetworkActivityObserver { On 2016/05/10 23:54:24, Kevin M wrote: ...
4 years, 7 months ago (2016-05-11 22:08:00 UTC) #5
shaktisahu
https://codereview.chromium.org/1962393004/diff/1/blimp/client/feature/compositor/blimp_compositor.cc File blimp/client/feature/compositor/blimp_compositor.cc (right): https://codereview.chromium.org/1962393004/diff/1/blimp/client/feature/compositor/blimp_compositor.cc#newcode110 blimp/client/feature/compositor/blimp_compositor.cc:110: VLOG(0) << "commit completed, current count " << ++commit_count_; ...
4 years, 7 months ago (2016-05-16 05:41:39 UTC) #10
shaktisahu
4 years, 7 months ago (2016-05-17 23:13:56 UTC) #11
shaktisahu
On 2016/05/17 23:13:56, shaktisahu wrote: PTAL
4 years, 7 months ago (2016-05-17 23:14:13 UTC) #12
Khushal
https://codereview.chromium.org/1962393004/diff/20001/blimp/client/app/android/blimp_client_session_android.cc File blimp/client/app/android/blimp_client_session_android.cc (right): https://codereview.chromium.org/1962393004/diff/20001/blimp/client/app/android/blimp_client_session_android.cc#newcode124 blimp/client/app/android/blimp_client_session_android.cc:124: void BlimpClientSessionAndroid::EnableDebugInfo( Hmmm, I don't think we really need ...
4 years, 7 months ago (2016-05-18 00:23:01 UTC) #13
Kevin M
https://codereview.chromium.org/1962393004/diff/80001/blimp/net/blimp_connection_details.cc File blimp/net/blimp_connection_details.cc (right): https://codereview.chromium.org/1962393004/diff/80001/blimp/net/blimp_connection_details.cc#newcode13 blimp/net/blimp_connection_details.cc:13: BlimpConnectionDetails::BlimpConnectionDetails( The name "Connection Details" isn't a good fit ...
4 years, 7 months ago (2016-05-18 18:38:28 UTC) #14
Khushal
https://codereview.chromium.org/1962393004/diff/20001/blimp/client/app/android/blimp_client_session_android.cc File blimp/client/app/android/blimp_client_session_android.cc (right): https://codereview.chromium.org/1962393004/diff/20001/blimp/client/app/android/blimp_client_session_android.cc#newcode124 blimp/client/app/android/blimp_client_session_android.cc:124: void BlimpClientSessionAndroid::EnableDebugInfo( On 2016/05/18 00:23:00, Khushal wrote: > Hmmm, ...
4 years, 7 months ago (2016-05-18 20:41:10 UTC) #15
shaktisahu
Moved to a Java based pull logic as per discussion with Kevin. https://codereview.chromium.org/1962393004/diff/20001/blimp/client/app/android/blimp_client_session_android.cc File blimp/client/app/android/blimp_client_session_android.cc ...
4 years, 7 months ago (2016-05-19 21:39:19 UTC) #17
Kevin M
https://codereview.chromium.org/1962393004/diff/100001/blimp/client/app/android/blimp_client_session_android.cc File blimp/client/app/android/blimp_client_session_android.cc (right): https://codereview.chromium.org/1962393004/diff/100001/blimp/client/app/android/blimp_client_session_android.cc#newcode128 blimp/client/app/android/blimp_client_session_android.cc:128: BlimpClientSession::GetDebugInfo(); BlimpClientSession::GetDebugInfo should have a different name, as function ...
4 years, 7 months ago (2016-05-20 01:02:04 UTC) #18
Kevin M
https://codereview.chromium.org/1962393004/diff/100001/blimp/net/blimp_connection_statistics.h File blimp/net/blimp_connection_statistics.h (right): https://codereview.chromium.org/1962393004/diff/100001/blimp/net/blimp_connection_statistics.h#newcode41 blimp/net/blimp_connection_statistics.h:41: void GetDebugInfo(const base::Callback<void(StatisticsMap stats)>& callback); After a bit of ...
4 years, 7 months ago (2016-05-20 04:01:52 UTC) #19
Kevin M
If the class is changed to support retrieving metrics from another thread, then disregard my ...
4 years, 7 months ago (2016-05-20 16:37:28 UTC) #20
vmpstr
cc rs lgtm https://codereview.chromium.org/1962393004/diff/100001/cc/trees/remote_channel_unittest.cc File cc/trees/remote_channel_unittest.cc (right): https://codereview.chromium.org/1962393004/diff/100001/cc/trees/remote_channel_unittest.cc#newcode151 cc/trees/remote_channel_unittest.cc:151: if (++calls_received_on_both_server_and_client_ == 4) On 2016/05/20 ...
4 years, 7 months ago (2016-05-20 23:26:14 UTC) #21
shaktisahu
Kevin, PTAL https://codereview.chromium.org/1962393004/diff/100001/blimp/client/app/android/blimp_client_session_android.cc File blimp/client/app/android/blimp_client_session_android.cc (right): https://codereview.chromium.org/1962393004/diff/100001/blimp/client/app/android/blimp_client_session_android.cc#newcode128 blimp/client/app/android/blimp_client_session_android.cc:128: BlimpClientSession::GetDebugInfo(); On 2016/05/20 01:02:01, Kevin M wrote: ...
4 years, 7 months ago (2016-05-22 22:36:58 UTC) #22
Kevin M
Sorry for the latency - this is a pretty big CL in terms of # ...
4 years, 7 months ago (2016-05-24 01:02:02 UTC) #23
shaktisahu
Kevin, PTAL. https://codereview.chromium.org/1962393004/diff/120001/blimp/client/app/android/blimp_client_session_android.cc File blimp/client/app/android/blimp_client_session_android.cc (right): https://codereview.chromium.org/1962393004/diff/120001/blimp/client/app/android/blimp_client_session_android.cc#newcode122 blimp/client/app/android/blimp_client_session_android.cc:122: int metrics[3] = {stats->Get(BlimpConnectionStatistics::BYTES_RECEIVED), On 2016/05/24 01:02:00, ...
4 years, 7 months ago (2016-05-24 21:02:45 UTC) #24
Kevin M
Almost there... https://codereview.chromium.org/1962393004/diff/140001/blimp/net/blimp_connection_statistics.cc File blimp/net/blimp_connection_statistics.cc (right): https://codereview.chromium.org/1962393004/diff/140001/blimp/net/blimp_connection_statistics.cc#newcode7 blimp/net/blimp_connection_statistics.cc:7: #include "base/logging.h" Not used. https://codereview.chromium.org/1962393004/diff/140001/blimp/net/blimp_connection_statistics_unittest.cc File blimp/net/blimp_connection_statistics_unittest.cc ...
4 years, 7 months ago (2016-05-24 21:49:01 UTC) #25
shaktisahu
https://codereview.chromium.org/1962393004/diff/140001/blimp/net/blimp_connection_statistics.cc File blimp/net/blimp_connection_statistics.cc (right): https://codereview.chromium.org/1962393004/diff/140001/blimp/net/blimp_connection_statistics.cc#newcode7 blimp/net/blimp_connection_statistics.cc:7: #include "base/logging.h" On 2016/05/24 21:49:00, Kevin M wrote: > ...
4 years, 7 months ago (2016-05-24 22:42:14 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1962393004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1962393004/160001
4 years, 7 months ago (2016-05-24 22:44:04 UTC) #28
Kevin M
lgtm % a few changes https://codereview.chromium.org/1962393004/diff/160001/blimp/client/app/android/java/res/layout/debug_stats_overlay.xml File blimp/client/app/android/java/res/layout/debug_stats_overlay.xml (right): https://codereview.chromium.org/1962393004/diff/160001/blimp/client/app/android/java/res/layout/debug_stats_overlay.xml#newcode2 blimp/client/app/android/java/res/layout/debug_stats_overlay.xml:2: <!-- Copyright 2015 The ...
4 years, 7 months ago (2016-05-24 22:56:40 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1962393004/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1962393004/180001
4 years, 7 months ago (2016-05-24 23:23:38 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/10818) ios-device-gn on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 7 months ago (2016-05-24 23:26:20 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1962393004/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1962393004/200001
4 years, 7 months ago (2016-05-25 00:17:23 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/27203)
4 years, 7 months ago (2016-05-25 00:40:19 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1962393004/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1962393004/220001
4 years, 7 months ago (2016-05-25 01:18:07 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/27241)
4 years, 7 months ago (2016-05-25 01:42:18 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1962393004/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1962393004/220001
4 years, 7 months ago (2016-05-25 17:19:53 UTC) #49
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 7 months ago (2016-05-25 18:07:11 UTC) #50
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/03e5b0d97aa1fc6e813725465142978896ed8641 Cr-Commit-Position: refs/heads/master@{#395931}
4 years, 7 months ago (2016-05-25 18:09:03 UTC) #52
haibinlu
A revert of this CL (patchset #12 id:220001) has been created in https://codereview.chromium.org/2008283004/ by haibinlu@chromium.org. ...
4 years, 7 months ago (2016-05-26 01:11:47 UTC) #53
Kevin M
4 years, 6 months ago (2016-05-31 20:12:01 UTC) #59
Shakti, can we close this issue if https://codereview.chromium.org/2019463002
relanded it successfully?

Powered by Google App Engine
This is Rietveld 408576698