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

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

Created:
4 years, 7 months ago by shaktisahu
Modified:
4 years, 6 months ago
Reviewers:
vmpstr, Wez, Kevin M
CC:
chromium-reviews, cbentzel+watch_chromium.org, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, cc-bugs_chromium.org, dtrainor+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, khushalsagar+watch-blimp_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland: 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, 614888 TBR=vmpstr@chromium.org Original CL: https://codereview.chromium.org/1962393004/ Revert CL: https://codereview.chromium.org/2008283004/ CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/086802955ffbe67f0a2de987822ae8d18dd5353d Cr-Commit-Position: refs/heads/master@{#396351}

Patch Set 1 : Clean revert of revert #

Patch Set 2 : Fixed an ownership issue #

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

Messages

Total messages: 16 (8 generated)
shaktisahu
kmarshall: PTAL at diff between patch set 1 and 2. Patch set is a clean ...
4 years, 7 months ago (2016-05-26 23:11:45 UTC) #4
shaktisahu
kmarshall: PTAL at diff between patch set 1 and 2. Patch set is a clean ...
4 years, 7 months ago (2016-05-26 23:11:48 UTC) #5
Kevin M
https://codereview.chromium.org/2019463002/diff/20001/blimp/net/blimp_connection_statistics.h File blimp/net/blimp_connection_statistics.h (right): https://codereview.chromium.org/2019463002/diff/20001/blimp/net/blimp_connection_statistics.h#newcode41 blimp/net/blimp_connection_statistics.h:41: // intentionally leaked at the process termination. ??? Why ...
4 years, 7 months ago (2016-05-26 23:15:30 UTC) #7
Kevin M
lgtm (see histogram.h:64)
4 years, 7 months ago (2016-05-26 23:55:01 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2019463002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2019463002/20001
4 years, 7 months ago (2016-05-26 23:55:58 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-05-27 01:57:45 UTC) #12
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/086802955ffbe67f0a2de987822ae8d18dd5353d Cr-Commit-Position: refs/heads/master@{#396351}
4 years, 7 months ago (2016-05-27 02:00:20 UTC) #14
Wez
4 years, 6 months ago (2016-06-07 00:30:13 UTC) #16
Message was sent while issue was closed.
Belated drive-by.  tl;dr: I don't think we need BlimpConnectionStatistics, and
I'm concerned about the assertion of thread-safety.

https://codereview.chromium.org/2019463002/diff/20001/blimp/client/app/androi...
File blimp/client/app/android/blimp_client_session_android.cc (right):

https://codereview.chromium.org/2019463002/diff/20001/blimp/client/app/androi...
blimp/client/app/android/blimp_client_session_android.cc:125:
stats->Get(BlimpConnectionStatistics::COMMIT)};
As noted in the implementation, you're creating three separate histogram
snapshots to query from - IIUC all you actually want to do is have
GetBlimpConnectionStatistics() return a snapshot that you can query instead.

https://codereview.chromium.org/2019463002/diff/20001/blimp/net/blimp_connect...
File blimp/net/blimp_connection_statistics.cc (right):

https://codereview.chromium.org/2019463002/diff/20001/blimp/net/blimp_connect...
blimp/net/blimp_connection_statistics.cc:23: return snapshot->GetCount(type);
This doesn't look right; surely the whole point of snapshotting a histogram is
so you can grab the values from that snapshot to get a consistent view?

https://codereview.chromium.org/2019463002/diff/20001/blimp/net/blimp_connect...
File blimp/net/blimp_connection_statistics.h (right):

https://codereview.chromium.org/2019463002/diff/20001/blimp/net/blimp_connect...
blimp/net/blimp_connection_statistics.h:19: // it. This class is thread-safe.
I can't find anything in SparseHistogram that actually says it's thread-safe. 
It's also not clear that you need thread-safety - we only update the network
statistics on the network I/O thread, so provided we can cope with fetching
statistics asynchronously, we can have the histograms updated on that thread and
use PostTaskAndReply() to request a snapshot from which to get the values we
want.

AFAICT this class just creates SparseHistogram with specific flags, and defines
three event types - can't we do just do that directly?

https://codereview.chromium.org/2019463002/diff/20001/blimp/net/blimp_connect...
blimp/net/blimp_connection_statistics.h:41: // intentionally leaked at the
process termination.
On 2016/05/26 23:15:30, Kevin M wrote:
> ???
> 
> Why do we leak them? Is there another task that cleans them up? If so, what is
> it?

Did this ever get answered?

Powered by Google App Engine
This is Rietveld 408576698