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

Issue 13590005: Add a ConvertableToTraceFormat type to the trace framework. (Closed)

Created:
7 years, 8 months ago by dsinclair
Modified:
7 years, 8 months ago
Reviewers:
nduca, brettw
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add a ConvertableToTraceFormat type to the trace framework. This patch allows us to have larger objects passed into the trace framework which, at the point when we output tracing data, will request they be converted to TraceFormat by calling the AppendAsTraceFormat method. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193388

Patch Set 1 #

Patch Set 2 : Making pointers not raw. #

Patch Set 3 : Convert TraceEvent to store scoped_ptr as well. #

Patch Set 4 : #

Total comments: 8

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+288 lines, -46 lines) Patch
M base/debug/trace_event.h View 1 2 3 4 5 8 chunks +120 lines, -10 lines 0 comments Download
M base/debug/trace_event_impl.h View 1 2 3 4 5 5 chunks +19 lines, -0 lines 0 comments Download
M base/debug/trace_event_impl.cc View 1 2 3 4 5 13 chunks +105 lines, -33 lines 0 comments Download
M base/debug/trace_event_unittest.cc View 1 2 3 4 5 1 chunk +40 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/shared_impl/ppb_trace_event_impl.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
webkit/glue/webkitplatformsupport_impl.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
dsinclair
Nat, please take a look.
7 years, 8 months ago (2013-04-06 21:34:02 UTC) #1
nduca
lgtm https://codereview.chromium.org/13590005/diff/7001/base/debug/trace_event_impl.h File base/debug/trace_event_impl.h (right): https://codereview.chromium.org/13590005/diff/7001/base/debug/trace_event_impl.h#newcode51 base/debug/trace_event_impl.h:51: class ConvertableToJSON { So lets call this ConvertableToTraceFormat ...
7 years, 8 months ago (2013-04-09 22:16:42 UTC) #2
dsinclair
https://codereview.chromium.org/13590005/diff/7001/base/debug/trace_event_internal.h File base/debug/trace_event_internal.h (right): https://codereview.chromium.org/13590005/diff/7001/base/debug/trace_event_internal.h#newcode899 base/debug/trace_event_internal.h:899: base::debug::ConvertableToJSON* arg, This has to be scoped_ptr<base::debug::ConvertableToJSON> arg.
7 years, 8 months ago (2013-04-09 22:37:45 UTC) #3
dsinclair
Nat, PTAL. I fixed it up so you pass in scoped_ptr<ConvertableToTraceFormat> objects. This has the ...
7 years, 8 months ago (2013-04-10 01:09:31 UTC) #4
nduca
That sounds fine by me. LGTM.
7 years, 8 months ago (2013-04-10 01:57:41 UTC) #5
dsinclair
brettw, can you please take a look for OWNERS approval. Thanks, dan
7 years, 8 months ago (2013-04-10 03:20:12 UTC) #6
brettw
lgtm
7 years, 8 months ago (2013-04-10 05:06:56 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dsinclair@chromium.org/13590005/29001
7 years, 8 months ago (2013-04-10 13:24:05 UTC) #8
commit-bot: I haz the power
7 years, 8 months ago (2013-04-10 15:21:50 UTC) #9
Message was sent while issue was closed.
Change committed as 193388

Powered by Google App Engine
This is Rietveld 408576698