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

Issue 1996303002: [Tracing] Introduce Frame Data Side Panel (Closed)

Created:
4 years, 7 months ago by Xiaocheng
Modified:
4 years, 6 months ago
CC:
catapult-reviews_chromium.org, tracing-review_chromium.org
Base URL:
https://github.com/catapult-project/catapult.git@master
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

[Tracing] Introduce Frame Data Side Panel This patch adds a minimum usable UI of FrameBlamer [1] in Trace Viewer. The UI is a side panel that contains a table, where each row represents either a frame context or the top level context of a renderer process. When selecting a row, all slices attributed to the row's context and the context itself will get selected, so that their aggregated information will become available in the bottom panel. Screenshot: https://drive.google.com/open?id=0B7U-s0-cBvuQSENhbjRkeUJLcEk This patch depends on the class hierarchy of blame context classes in Trace Viewer, which are implemented in another patch [2]. [1] https://docs.google.com/document/d/15BB-suCb9j-nFt55yCFJBJCGzLg2qUm3WaSOPb8APtI/edit [2] https://codereview.chromium.org/2016213002 BUG=catapult:#2260 TEST=tracing.ui.extras.side_panel.fame_data_side_panel_test Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/5ede943f9a5e98cb11a586914f63a218a9a1b8ec

Patch Set 1 #

Patch Set 2 : Add some TODOs #

Total comments: 20

Patch Set 3 : Use blame context base classes #

Patch Set 4 : Respond to ROI; Merge Frame and FTN #

Total comments: 44

Patch Set 5 : Move the side panel to extras; Replace type-based if by polymorphism #

Patch Set 6 : UTC201605270344 #

Patch Set 7 : UTC201605270346 #

Patch Set 8 : Test case added #

Total comments: 24

Patch Set 9 : Address review comments; Move BlameContext.attributedEvents computation logic in #

Total comments: 7

Patch Set 10 : Address review comment #

Total comments: 12

Patch Set 11 : Add BlameContext type check; Rewrite unit test #

Patch Set 12 : Follow-up revision: use type-based conditionals and chrome helpers in Row constructor #

Total comments: 6

Patch Set 13 : #

Total comments: 2

Patch Set 14 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+410 lines, -0 lines) Patch
M tracing/trace_viewer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M tracing/tracing/ui/extras/chrome_config.html View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A tracing/tracing/ui/extras/side_panel/frame_data_side_panel.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +243 lines, -0 lines 0 comments Download
A tracing/tracing/ui/extras/side_panel/frame_data_side_panel_test.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +165 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (10 generated)
benjhayden
Thanks! Here are a few ideas. https://codereview.chromium.org/1996303002/diff/20001/tracing/tracing/model/object_instance.html File tracing/tracing/model/object_instance.html (right): https://codereview.chromium.org/1996303002/diff/20001/tracing/tracing/model/object_instance.html#newcode191 tracing/tracing/model/object_instance.html:191: get isBlameContext() { ...
4 years, 7 months ago (2016-05-20 16:16:05 UTC) #2
Xiaocheng
Thanks for the review for such a messy patch! https://codereview.chromium.org/1996303002/diff/20001/tracing/tracing/model/object_instance.html File tracing/tracing/model/object_instance.html (right): https://codereview.chromium.org/1996303002/diff/20001/tracing/tracing/model/object_instance.html#newcode191 tracing/tracing/model/object_instance.html:191: ...
4 years, 7 months ago (2016-05-23 03:17:14 UTC) #3
benjhayden
https://codereview.chromium.org/1996303002/diff/20001/tracing/tracing/ui/side_panel/frame_data_side_panel.html File tracing/tracing/ui/side_panel/frame_data_side_panel.html (right): https://codereview.chromium.org/1996303002/diff/20001/tracing/tracing/ui/side_panel/frame_data_side_panel.html#newcode43 tracing/tracing/ui/side_panel/frame_data_side_panel.html:43: // TODO(xiaochengh): Use a grouping table instead. A table ...
4 years, 7 months ago (2016-05-23 17:18:41 UTC) #4
benjhayden
https://codereview.chromium.org/1996303002/diff/20001/tracing/tracing/ui/side_panel/frame_data_side_panel.html File tracing/tracing/ui/side_panel/frame_data_side_panel.html (right): https://codereview.chromium.org/1996303002/diff/20001/tracing/tracing/ui/side_panel/frame_data_side_panel.html#newcode64 tracing/tracing/ui/side_panel/frame_data_side_panel.html:64: // TODO(xiaochengh): Find a saner approach. On 2016/05/23 at ...
4 years, 7 months ago (2016-05-23 17:47:29 UTC) #5
Xiaocheng
On 2016/05/23 at 17:18:41, benjhayden wrote: > https://codereview.chromium.org/1996303002/diff/20001/tracing/tracing/ui/side_panel/frame_data_side_panel.html > File tracing/tracing/ui/side_panel/frame_data_side_panel.html (right): > > https://codereview.chromium.org/1996303002/diff/20001/tracing/tracing/ui/side_panel/frame_data_side_panel.html#newcode43 ...
4 years, 7 months ago (2016-05-24 08:55:58 UTC) #6
Xiaocheng
This is how it looks like currently: https://drive.google.com/a/google.com/file/d/0B7U-s0-cBvuQUHRVM3hSZjFfYlE/view?usp=sharing Hope you are interested, so that we ...
4 years, 7 months ago (2016-05-24 09:09:29 UTC) #8
Sami
Looks good to me -- I think this is a great starting point. https://codereview.chromium.org/1996303002/diff/60001/tracing/tracing/extras/chrome/blame_context/frame.html File ...
4 years, 7 months ago (2016-05-24 09:49:57 UTC) #9
petrcermak
Here's a couple of comments. Please: * Add a patch description. I would definitely explain ...
4 years, 7 months ago (2016-05-24 10:54:11 UTC) #10
Xiaocheng
Sorry I should have made it clear that the patch is heavily incomplete and the ...
4 years, 7 months ago (2016-05-25 10:17:48 UTC) #12
Xiaocheng
PTAL at patch 8, which should be a landable patch now. Some (seemingly) extensional features ...
4 years, 6 months ago (2016-05-27 11:44:56 UTC) #14
petrcermak
Looks good overall. I've left a few more inline comments. I don't think you need ...
4 years, 6 months ago (2016-05-27 14:11:02 UTC) #15
Xiaocheng
Thanks for the review! The panel width issue is fixed, though in a different way. ...
4 years, 6 months ago (2016-05-30 08:18:04 UTC) #16
petrcermak
LGTM with a few more comments and please s/trace viewer/Trace Viewer/g in the patch description. ...
4 years, 6 months ago (2016-05-31 09:57:24 UTC) #17
Xiaocheng
Thanks for your review, which really helped improving this patch by a lot! All comments ...
4 years, 6 months ago (2016-05-31 12:01:11 UTC) #19
petrcermak
Still LGTM :-) Petr
4 years, 6 months ago (2016-05-31 13:28:57 UTC) #20
benjhayden
This is looking pretty good, thanks! Would you mind adding a link to a screenshot ...
4 years, 6 months ago (2016-06-01 00:59:24 UTC) #21
Xiaocheng
Thanks for your review, Ben. This patch won't get landed before the depending patch, so ...
4 years, 6 months ago (2016-06-01 01:54:23 UTC) #23
nduca
Don't block on me, I'm swamped.
4 years, 6 months ago (2016-06-01 16:37:30 UTC) #24
Sami
lgtm, seems like a good base to build on. https://codereview.chromium.org/1996303002/diff/180001/tracing/tracing/ui/extras/side_panel/frame_data_side_panel_test.html File tracing/tracing/ui/extras/side_panel/frame_data_side_panel_test.html (right): https://codereview.chromium.org/1996303002/diff/180001/tracing/tracing/ui/extras/side_panel/frame_data_side_panel_test.html#newcode65 tracing/tracing/ui/extras/side_panel/frame_data_side_panel_test.html:65: ...
4 years, 6 months ago (2016-06-01 18:05:47 UTC) #25
benjhayden
https://codereview.chromium.org/1996303002/diff/180001/tracing/tracing/ui/extras/side_panel/frame_data_side_panel.html File tracing/tracing/ui/extras/side_panel/frame_data_side_panel.html (right): https://codereview.chromium.org/1996303002/diff/180001/tracing/tracing/ui/extras/side_panel/frame_data_side_panel.html#newcode176 tracing/tracing/ui/extras/side_panel/frame_data_side_panel.html:176: if (instance.blameContextType) On 2016/06/01 at 01:54:23, Xiaocheng wrote: > ...
4 years, 6 months ago (2016-06-01 22:41:48 UTC) #26
Xiaocheng
Updates in Patch 11: Do type check of BlameContextInstance instead of checking the |blameContextType| getter. ...
4 years, 6 months ago (2016-06-02 08:25:57 UTC) #27
Xiaocheng
https://codereview.chromium.org/1996303002/diff/180001/tracing/tracing/ui/extras/side_panel/frame_data_side_panel.html File tracing/tracing/ui/extras/side_panel/frame_data_side_panel.html (right): https://codereview.chromium.org/1996303002/diff/180001/tracing/tracing/ui/extras/side_panel/frame_data_side_panel.html#newcode142 tracing/tracing/ui/extras/side_panel/frame_data_side_panel.html:142: // TODO(xiaochengh): Is it possible for AsyncSlices to be ...
4 years, 6 months ago (2016-06-02 09:13:45 UTC) #28
Xiaocheng
Following Ben's suggestions in the depended CL, Patch 12 now performs type-based branching in row ...
4 years, 6 months ago (2016-06-03 05:55:01 UTC) #29
benjhayden
https://codereview.chromium.org/1996303002/diff/220001/tracing/tracing/ui/extras/side_panel/frame_data_side_panel.html File tracing/tracing/ui/extras/side_panel/frame_data_side_panel.html (right): https://codereview.chromium.org/1996303002/diff/220001/tracing/tracing/ui/extras/side_panel/frame_data_side_panel.html#newcode164 tracing/tracing/ui/extras/side_panel/frame_data_side_panel.html:164: // TODO(xiaochengh): Is it possible for AsyncSlices to be ...
4 years, 6 months ago (2016-06-03 16:56:00 UTC) #30
Xiaocheng
https://codereview.chromium.org/1996303002/diff/220001/tracing/tracing/ui/extras/side_panel/frame_data_side_panel.html File tracing/tracing/ui/extras/side_panel/frame_data_side_panel.html (right): https://codereview.chromium.org/1996303002/diff/220001/tracing/tracing/ui/extras/side_panel/frame_data_side_panel.html#newcode164 tracing/tracing/ui/extras/side_panel/frame_data_side_panel.html:164: // TODO(xiaochengh): Is it possible for AsyncSlices to be ...
4 years, 6 months ago (2016-06-03 21:25:06 UTC) #31
Xiaocheng
https://codereview.chromium.org/1996303002/diff/220001/tracing/tracing/ui/extras/side_panel/frame_data_side_panel.html File tracing/tracing/ui/extras/side_panel/frame_data_side_panel.html (right): https://codereview.chromium.org/1996303002/diff/220001/tracing/tracing/ui/extras/side_panel/frame_data_side_panel.html#newcode169 tracing/tracing/ui/extras/side_panel/frame_data_side_panel.html:169: // TODO(xiaochengh): Throw some warning for broken reference. On ...
4 years, 6 months ago (2016-06-06 02:13:19 UTC) #32
benjhayden
lgtm Thanks! https://codereview.chromium.org/1996303002/diff/240001/tracing/tracing/ui/extras/side_panel/frame_data_side_panel.html File tracing/tracing/ui/extras/side_panel/frame_data_side_panel.html (right): https://codereview.chromium.org/1996303002/diff/240001/tracing/tracing/ui/extras/side_panel/frame_data_side_panel.html#newcode73 tracing/tracing/ui/extras/side_panel/frame_data_side_panel.html:73: this.contexts.some(function(context) { Can you integrate this into ...
4 years, 6 months ago (2016-06-06 16:51:12 UTC) #34
Xiaocheng
All right this is finally going to make it! Thank you all so much! https://codereview.chromium.org/1996303002/diff/240001/tracing/tracing/ui/extras/side_panel/frame_data_side_panel.html ...
4 years, 6 months ago (2016-06-07 02:01:51 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1996303002/260001
4 years, 6 months ago (2016-06-07 02:02:03 UTC) #38
commit-bot: I haz the power
4 years, 6 months ago (2016-06-07 02:26:31 UTC) #40
Message was sent while issue was closed.
Committed patchset #14 (id:260001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698