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

Issue 263653002: Move traced_value.* from cc/debug/ to base/debug/ (Closed)

Created:
6 years, 7 months ago by yurys
Modified:
6 years, 4 months ago
Reviewers:
caseq, awong
CC:
cc-bugs_chromium.org, chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

Move traced_value.* from cc/debug/ to base/debug/ TracedValue depends only on types from 'base' namespace and may be reused in other components. I need it in content/common/gpu/gpu_command_buffer_stub.cc BUG=361045

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : Rebase #

Patch Set 6 : Added BASE_EXPORT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -207 lines) Patch
M base/base.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A + base/debug/traced_value.h View 1 2 3 4 5 3 chunks +13 lines, -9 lines 0 comments Download
A + base/debug/traced_value.cc View 4 chunks +9 lines, -7 lines 0 comments Download
M cc/cc.gyp View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M cc/debug/frame_viewer_instrumentation.h View 3 chunks +12 lines, -10 lines 0 comments Download
M cc/debug/rendering_stats.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/debug/rendering_stats.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/debug/traced_picture.cc View 1 chunk +1 line, -1 line 0 comments Download
D cc/debug/traced_value.h View 1 chunk +0 lines, -51 lines 0 comments Download
D cc/debug/traced_value.cc View 1 chunk +0 lines, -63 lines 0 comments Download
M cc/layers/heads_up_display_layer_impl.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 3 chunks +2 lines, -2 lines 0 comments Download
M cc/layers/picture_layer_impl.cc View 1 2 3 4 2 chunks +5 lines, -3 lines 0 comments Download
M cc/quads/draw_quad.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M cc/quads/render_pass.cc View 1 2 3 4 2 chunks +5 lines, -3 lines 0 comments Download
M cc/quads/render_pass_draw_quad.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M cc/quads/shared_quad_state.cc View 1 2 3 4 2 chunks +5 lines, -3 lines 0 comments Download
M cc/resources/image_copy_raster_worker_pool.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M cc/resources/image_raster_worker_pool.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M cc/resources/picture.cc View 1 2 3 4 2 chunks +7 lines, -5 lines 0 comments Download
M cc/resources/picture_pile_base.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M cc/resources/pixel_buffer_raster_worker_pool.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M cc/resources/tile.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M cc/resources/tile_manager.cc View 1 2 3 chunks +14 lines, -13 lines 0 comments Download
M cc/scheduler/scheduler.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 4 chunks +7 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 3 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
yurys
6 years, 7 months ago (2014-04-30 12:42:56 UTC) #1
yurys
@ajwong: please review changes in base/
6 years, 7 months ago (2014-04-30 12:44:22 UTC) #2
yurys
@ajwong: please review changes in base/
6 years, 7 months ago (2014-04-30 12:46:04 UTC) #3
yurys
ping
6 years, 7 months ago (2014-05-02 04:20:47 UTC) #4
awong
I'm slightly hesitant to pull this into base -- especially without more documentation on how/when/why ...
6 years, 7 months ago (2014-05-02 05:44:24 UTC) #5
yurys
On 2014/05/02 05:44:24, awong wrote: > I'm slightly hesitant to pull this into base -- ...
6 years, 7 months ago (2014-05-05 07:05:00 UTC) #6
awong
LGTM Sorry for the delay. Talked this over with another base owner. I think this ...
6 years, 7 months ago (2014-05-07 21:49:22 UTC) #7
yurys
@nduca: please do OWNERS review
6 years, 7 months ago (2014-05-08 14:44:37 UTC) #8
nduca
can you please call the filename trace_event_somthingorother? this lets you put it in the trace_event ...
6 years, 7 months ago (2014-05-08 17:03:05 UTC) #9
yurys
6 years, 7 months ago (2014-05-15 15:07:37 UTC) #10
On 2014/05/08 17:03:05, nduca wrote:
> can you please call the filename trace_event_somthingorother? this lets you
put
> it in the trace_event review ecosystem which lets you iterate with my lg's.
> 
> Also, how much does this lock us into the current notion that tracedvalue
wraps
> a value*? In the medium term , i'd like to make TracedValue more of this form:
> 
> 
> v = new TracedDictValue()
> v.beginDictNamed("foo")
> v.setInteger("bar", 3)
> v.setString("baz", "str")
> v.endDictNamed("foo")
> 
> would push into a pickle internally and then convert to json in this form
later:
> {foo: {bar: 3, baz: "Str"}}
> 
> The reason for this direction is that the primary cost of using tracedvalues
is
> the number of heap allocs that you have to do now. I'd like to get away from
> that pretty soon before we start blessing this as a general interface.
> 
> With all that in mind, wdyt we should do?

How about introducing trace_event_argument which would be a builder with
an interface like you described above with TraceEventArgument::Finish returning
an instance of ConvertableToTraceFormat. First implementation would create
value*
object and wrap it into TracedValue (current implementation) but all of that
could
be hidden in the implementation of trace_event_argument. That way the
implementation
can be changed later to use pickles internally while the clients' code will stay
the same.

I'm not sure though how to deal with current AsValue methods - they could
be modified to accept the builder as an argument but we will need a way to
validate that begin/end calls are balanced.

Powered by Google App Engine
This is Rietveld 408576698