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

Issue 20667002: cc: Add frame data to LTHI tracing (Closed)

Created:
7 years, 5 months ago by piman
Modified:
7 years, 4 months ago
Reviewers:
danakj, nduca, vmpstr
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

cc: Add frame data to LTHI tracing This adds AddValue support to FrameData, RenderPass, *DrawQuad, FilterOperations, etc. It also adds an optional 'frame' field to the LTHI state which is the frame being produced at this point, with everything mentioned above. BUG=None R=danakj@chromium.org, nduca@chromium.org, vmpstr@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216782

Patch Set 1 #

Total comments: 11

Patch Set 2 : make snapshot objects #

Patch Set 3 : make snapshots, transform rects into target space #

Patch Set 4 : try again #

Total comments: 6

Patch Set 5 : rebase #

Patch Set 6 : Fix names, rebase on top of HashPair patch #

Total comments: 12

Patch Set 7 : nits #

Total comments: 3

Patch Set 8 : rebase #

Patch Set 9 : add category thing #

Total comments: 4

Patch Set 10 : review nits #

Patch Set 11 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+394 lines, -12 lines) Patch
M cc/base/math_util.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M cc/base/math_util.cc View 1 2 3 4 2 chunks +17 lines, -0 lines 0 comments Download
M cc/debug/traced_value.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M cc/debug/traced_value.cc View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -0 lines 0 comments Download
M cc/output/filter_operation.h View 2 chunks +7 lines, -0 lines 0 comments Download
M cc/output/filter_operation.cc View 2 chunks +37 lines, -0 lines 0 comments Download
M cc/output/filter_operations.h View 2 chunks +7 lines, -0 lines 0 comments Download
M cc/output/filter_operations.cc View 2 chunks +10 lines, -1 line 0 comments Download
M cc/quads/checkerboard_draw_quad.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/quads/checkerboard_draw_quad.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M cc/quads/content_draw_quad_base.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/quads/content_draw_quad_base.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M cc/quads/debug_border_draw_quad.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/quads/debug_border_draw_quad.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M cc/quads/draw_quad.h View 4 chunks +19 lines, -3 lines 0 comments Download
M cc/quads/draw_quad.cc View 1 2 3 4 5 6 3 chunks +48 lines, -0 lines 0 comments Download
M cc/quads/io_surface_draw_quad.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/quads/io_surface_draw_quad.cc View 1 2 3 4 5 6 2 chunks +18 lines, -0 lines 0 comments Download
M cc/quads/picture_draw_quad.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/quads/picture_draw_quad.cc View 2 chunks +12 lines, -0 lines 0 comments Download
M cc/quads/render_pass.h View 1 2 3 4 5 3 chunks +7 lines, -0 lines 0 comments Download
M cc/quads/render_pass.cc View 1 2 3 4 5 6 7 8 9 3 chunks +38 lines, -1 line 0 comments Download
M cc/quads/render_pass_draw_quad.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/quads/render_pass_draw_quad.cc View 1 2 chunks +19 lines, -0 lines 0 comments Download
M cc/quads/shared_quad_state.h View 1 2 chunks +8 lines, -1 line 0 comments Download
M cc/quads/shared_quad_state.cc View 1 2 3 4 5 6 7 8 9 2 chunks +26 lines, -1 line 0 comments Download
M cc/quads/solid_color_draw_quad.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/quads/solid_color_draw_quad.cc View 2 chunks +7 lines, -1 line 0 comments Download
M cc/quads/stream_video_draw_quad.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/quads/stream_video_draw_quad.cc View 2 chunks +7 lines, -0 lines 0 comments Download
M cc/quads/texture_draw_quad.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/quads/texture_draw_quad.cc View 2 chunks +15 lines, -0 lines 0 comments Download
M cc/quads/tile_draw_quad.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/quads/tile_draw_quad.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M cc/quads/yuv_video_draw_quad.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/quads/yuv_video_draw_quad.cc View 2 chunks +10 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 5 chunks +27 lines, -3 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
piman
vmpstr: please review whole CL danakj: please review comments added to DrawQuad/SharedQuadState about the coordinate ...
7 years, 5 months ago (2013-07-26 06:28:43 UTC) #1
vmpstr
That's quite a bit of data :) I think in general, we're trying to limit ...
7 years, 5 months ago (2013-07-26 16:07:23 UTC) #2
danakj
+1 to vlad. If we can avoid the virtual function for now and just dump ...
7 years, 5 months ago (2013-07-26 16:49:08 UTC) #3
danakj
https://codereview.chromium.org/20667002/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/20667002/diff/1/cc/trees/layer_tree_host_impl.cc#newcode435 cc/trees/layer_tree_host_impl.cc:435: value->Set("occluding_screen_space_rects", occluding_list.release()); These 3 lists only exist when you ...
7 years, 5 months ago (2013-07-26 16:53:59 UTC) #4
nduca
#define TRACE_EVENT_CATEGORY_GROUP_ENABLED(category_group, ret) if it helps
7 years, 5 months ago (2013-07-26 23:03:20 UTC) #5
piman
PTAL https://codereview.chromium.org/20667002/diff/1/cc/quads/draw_quad.cc File cc/quads/draw_quad.cc (right): https://codereview.chromium.org/20667002/diff/1/cc/quads/draw_quad.cc#newcode100 cc/quads/draw_quad.cc:100: value->Set("rect", MathUtil::AsValue(rect).release()); On 2013/07/26 16:49:08, danakj wrote: > ...
7 years, 4 months ago (2013-07-31 00:36:43 UTC) #6
piman
https://codereview.chromium.org/20667002/diff/20002/cc/quads/render_pass.cc File cc/quads/render_pass.cc (right): https://codereview.chromium.org/20667002/diff/20002/cc/quads/render_pass.cc#newcode17 cc/quads/render_pass.cc:17: BASE_HASH_NAMESPACE::hash<std::pair<Type1, Type2> > hash_functor; Ah, hold on, this doesn't ...
7 years, 4 months ago (2013-07-31 00:49:40 UTC) #7
vmpstr
https://codereview.chromium.org/20667002/diff/20002/cc/quads/draw_quad.cc File cc/quads/draw_quad.cc (right): https://codereview.chromium.org/20667002/diff/20002/cc/quads/draw_quad.cc#newcode103 cc/quads/draw_quad.cc:103: value->Set("rect_in_content_space", MathUtil::AsValue(rect).release()); nit: A little note for the future ...
7 years, 4 months ago (2013-07-31 16:23:24 UTC) #8
piman
Rebased on top of https://codereview.chromium.org/21648002/ to clean up the hash business. https://codereview.chromium.org/20667002/diff/20002/cc/quads/draw_quad.cc File cc/quads/draw_quad.cc (right): ...
7 years, 4 months ago (2013-08-06 04:19:32 UTC) #9
vmpstr
lgtm. Do you have a sample trace from this code somewhere? We should check that ...
7 years, 4 months ago (2013-08-06 16:43:43 UTC) #10
danakj
https://codereview.chromium.org/20667002/diff/43001/cc/quads/draw_quad.cc File cc/quads/draw_quad.cc (right): https://codereview.chromium.org/20667002/diff/43001/cc/quads/draw_quad.cc#newcode105 cc/quads/draw_quad.cc:105: gfx::QuadF rect_as_target_space_quad = MathUtil::MapQuad( How about MapClippedQuad instead? You ...
7 years, 4 months ago (2013-08-06 19:30:34 UTC) #11
piman
https://codereview.chromium.org/20667002/diff/43001/cc/quads/draw_quad.cc File cc/quads/draw_quad.cc (right): https://codereview.chromium.org/20667002/diff/43001/cc/quads/draw_quad.cc#newcode105 cc/quads/draw_quad.cc:105: gfx::QuadF rect_as_target_space_quad = MathUtil::MapQuad( On 2013/08/06 19:30:34, danakj wrote: ...
7 years, 4 months ago (2013-08-06 23:31:11 UTC) #12
danakj
https://codereview.chromium.org/20667002/diff/43001/cc/quads/draw_quad.cc File cc/quads/draw_quad.cc (right): https://codereview.chromium.org/20667002/diff/43001/cc/quads/draw_quad.cc#newcode105 cc/quads/draw_quad.cc:105: gfx::QuadF rect_as_target_space_quad = MathUtil::MapQuad( On 2013/08/06 23:31:11, piman wrote: ...
7 years, 4 months ago (2013-08-06 23:35:47 UTC) #13
piman
https://codereview.chromium.org/20667002/diff/43001/cc/quads/draw_quad.cc File cc/quads/draw_quad.cc (right): https://codereview.chromium.org/20667002/diff/43001/cc/quads/draw_quad.cc#newcode105 cc/quads/draw_quad.cc:105: gfx::QuadF rect_as_target_space_quad = MathUtil::MapQuad( On 2013/08/06 23:35:47, danakj wrote: ...
7 years, 4 months ago (2013-08-06 23:37:43 UTC) #14
danakj
Yay, LGTM https://codereview.chromium.org/20667002/diff/52001/cc/quads/draw_quad.cc File cc/quads/draw_quad.cc (right): https://codereview.chromium.org/20667002/diff/52001/cc/quads/draw_quad.cc#newcode101 cc/quads/draw_quad.cc:101: TracedValue::CreateIDRef(shared_quad_state).release()); Oh I see, so this is ...
7 years, 4 months ago (2013-08-06 23:39:27 UTC) #15
nduca
lgtm for what its worth maybe try that cat thing https://codereview.chromium.org/20667002/diff/52001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/20667002/diff/52001/cc/trees/layer_tree_host_impl.cc#newcode1280 ...
7 years, 4 months ago (2013-08-07 22:11:53 UTC) #16
piman
Nat: PTAL, I did the "cat" thing, it was happy with tot trace-viewer. I suppose ...
7 years, 4 months ago (2013-08-09 04:18:19 UTC) #17
nduca
lgtm with a few nits... https://codereview.chromium.org/20667002/diff/64001/cc/debug/traced_value.h File cc/debug/traced_value.h (right): https://codereview.chromium.org/20667002/diff/64001/cc/debug/traced_value.h#newcode22 cc/debug/traced_value.h:22: static void MakeDictIntoImplicitSnapshot(const char* ...
7 years, 4 months ago (2013-08-09 04:27:45 UTC) #18
piman
https://codereview.chromium.org/20667002/diff/64001/cc/debug/traced_value.h File cc/debug/traced_value.h (right): https://codereview.chromium.org/20667002/diff/64001/cc/debug/traced_value.h#newcode22 cc/debug/traced_value.h:22: static void MakeDictIntoImplicitSnapshot(const char* category, On 2013/08/09 04:27:45, nduca ...
7 years, 4 months ago (2013-08-09 20:26:06 UTC) #19
nduca
Fair point. Bombs awaaay!! :)
7 years, 4 months ago (2013-08-09 20:27:19 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piman@chromium.org/20667002/77001
7 years, 4 months ago (2013-08-09 20:59:36 UTC) #21
piman
Sample data in trace-viewer@r852
7 years, 4 months ago (2013-08-09 21:26:00 UTC) #22
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 4 months ago (2013-08-09 23:47:41 UTC) #23
piman
7 years, 4 months ago (2013-08-09 23:51:27 UTC) #24
Message was sent while issue was closed.
Committed patchset #11 manually as r216782 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698