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

Issue 270703004: Making BeginFrameArgs work with TRACE_EVENT system. (Closed)

Created:
6 years, 7 months ago by mithro-old
Modified:
6 years, 7 months ago
Reviewers:
nduca, brianderson
CC:
chromium-reviews, cc-bugs_chromium.org, Sami
Visibility:
Public.

Description

Making BeginFrameArgs work with TRACE_EVENT system. * Added ToValue() method on BeginFrameArgs. * Added a ToTrace method inside cc/traced_value.h for easy conversion, just do a ToTrace(XXX) of anything which has a ToValue() method. * Rename Scheduler::StateAsValue to AsValue so it works with above. BUG=371223 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269487

Patch Set 1 #

Total comments: 2

Patch Set 2 : Using the traced_value in cc/debug #

Patch Set 3 : Making AsTrace a templated function. #

Patch Set 4 : Removing sperious include. #

Patch Set 5 : Removing another include. #

Total comments: 3

Patch Set 6 : Using AsValue rather than StateAsValue. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -31 lines) Patch
M cc/debug/traced_value.h View 1 2 3 4 5 1 chunk +11 lines, -0 lines 1 comment Download
M cc/output/begin_frame_args.h View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M cc/output/begin_frame_args.cc View 1 2 3 4 5 2 chunks +10 lines, -0 lines 0 comments Download
M cc/scheduler/scheduler.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M cc/scheduler/scheduler.cc View 1 2 3 4 5 6 chunks +8 lines, -6 lines 0 comments Download
M cc/scheduler/scheduler_unittest.cc View 1 2 3 4 5 6 chunks +14 lines, -14 lines 0 comments Download
M cc/trees/proxy.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/proxy.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/thread_proxy.h View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M cc/trees/thread_proxy.cc View 1 2 3 4 5 2 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
mithro-old
Hi Brian, This CL adds support for using the BeginFrameArgs inside TRACE_EVENT system. Extracted from ...
6 years, 7 months ago (2014-05-08 08:32:01 UTC) #1
brianderson
https://codereview.chromium.org/270703004/diff/1/cc/output/begin_frame_args.h File cc/output/begin_frame_args.h (right): https://codereview.chromium.org/270703004/diff/1/cc/output/begin_frame_args.h#newcode45 cc/output/begin_frame_args.h:45: scoped_refptr<base::debug::ConvertableToTraceFormat> AsTrace() const; How is AsTrace() different than AsValue()?
6 years, 7 months ago (2014-05-08 17:03:16 UTC) #2
mithro-old
https://codereview.chromium.org/270703004/diff/1/cc/output/begin_frame_args.h File cc/output/begin_frame_args.h (right): https://codereview.chromium.org/270703004/diff/1/cc/output/begin_frame_args.h#newcode45 cc/output/begin_frame_args.h:45: scoped_refptr<base::debug::ConvertableToTraceFormat> AsTrace() const; On 2014/05/08 17:03:16, brianderson wrote: > ...
6 years, 7 months ago (2014-05-08 19:44:23 UTC) #3
mithro-old
PTAL. Turns out that the TracedValue code was already found in cc/debug/traced_value.h Went with the ...
6 years, 7 months ago (2014-05-08 21:21:24 UTC) #4
brianderson
https://codereview.chromium.org/270703004/diff/80001/cc/debug/traced_value.h File cc/debug/traced_value.h (right): https://codereview.chromium.org/270703004/diff/80001/cc/debug/traced_value.h#newcode50 cc/debug/traced_value.h:50: static scoped_refptr<base::debug::ConvertableToTraceFormat> ToTrace(T* t) { Nice! https://codereview.chromium.org/270703004/diff/80001/cc/output/begin_frame_args.h File cc/output/begin_frame_args.h ...
6 years, 7 months ago (2014-05-08 21:25:48 UTC) #5
mithro-old
On 2014/05/08 21:25:48, brianderson wrote: > https://codereview.chromium.org/270703004/diff/80001/cc/debug/traced_value.h > File cc/debug/traced_value.h (right): > > https://codereview.chromium.org/270703004/diff/80001/cc/debug/traced_value.h#newcode50 > ...
6 years, 7 months ago (2014-05-08 21:36:24 UTC) #6
brianderson
https://codereview.chromium.org/270703004/diff/100001/cc/debug/traced_value.h File cc/debug/traced_value.h (right): https://codereview.chromium.org/270703004/diff/100001/cc/debug/traced_value.h#newcode50 cc/debug/traced_value.h:50: static scoped_refptr<base::debug::ConvertableToTraceFormat> ToTrace(T* t) { lgtm if Nat's happy ...
6 years, 7 months ago (2014-05-08 21:43:24 UTC) #7
nduca
lgtm
6 years, 7 months ago (2014-05-09 00:21:46 UTC) #8
mithro-old
The CQ bit was checked by mithro@mithis.com
6 years, 7 months ago (2014-05-09 00:48:43 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mithro@mithis.com/270703004/100001
6 years, 7 months ago (2014-05-09 00:50:11 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-09 02:23:59 UTC) #11
commit-bot: I haz the power
6 years, 7 months ago (2014-05-10 02:16:04 UTC) #12
Message was sent while issue was closed.
Change committed as 269487

Powered by Google App Engine
This is Rietveld 408576698