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

Issue 11464005: Add trace event Pepper API (Closed)

Created:
8 years ago by elijahtaylor1
Modified:
7 years, 11 months ago
Reviewers:
brettw, jbauman
CC:
chromium-reviews, yusukes+watch_chromium.org, yzshen+watch_chromium.org, darin-cc_chromium.org, raymes+watch_chromium.org, piman+watch_chromium.org, erikwright+watch_chromium.org, ihf+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add trace event Pepper API This facilitates adding trace data to chrome://tracing from plugins. - broke out trace_event.h into trace_event.h/trace_event_internal.h for easier transplanting to plugin code by eliminating dependence on base/. - inlined trace_event.cc methods (4 total) so the trace_event_internal implementation is contained in headers. - added new PPB_TraceEvent_Dev interface (implemented entirely on the plugin side) BUG=none TEST=base unittests, manual for plugin testing Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175233

Patch Set 1 #

Patch Set 2 : Enable NaCl compilation #

Total comments: 7

Patch Set 3 : Feedback #

Total comments: 10

Patch Set 4 : Deleted thunk, renamed, other feedback #

Total comments: 5

Patch Set 5 : more feedback #

Patch Set 6 : Rebase to head revision, cleanup #

Patch Set 7 : remove unused code #

Patch Set 8 : fix build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+301 lines, -967 lines) Patch
M base/base.gypi View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M base/debug/trace_event.h View 1 2 3 4 5 6 2 chunks +14 lines, -876 lines 0 comments Download
D base/debug/trace_event.cc View 1 2 3 4 5 1 chunk +0 lines, -28 lines 0 comments Download
A + base/debug/trace_event_internal.h View 1 2 3 4 5 9 chunks +35 lines, -60 lines 0 comments Download
A ppapi/api/dev/ppb_trace_event_dev.idl View 1 2 3 4 5 1 chunk +50 lines, -0 lines 0 comments Download
A ppapi/c/dev/ppb_trace_event_dev.h View 1 2 3 4 5 1 chunk +68 lines, -0 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c View 1 2 3 4 5 6 chunks +13 lines, -0 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/proxy/interface_list.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/shared_impl/ppb_instance_shared.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A ppapi/shared_impl/ppb_trace_event_impl.h View 1 2 3 4 5 1 chunk +35 lines, -0 lines 0 comments Download
A ppapi/shared_impl/ppb_trace_event_impl.cc View 1 2 3 4 5 6 7 1 chunk +74 lines, -0 lines 0 comments Download
M ppapi/tests/all_c_includes.h View 1 2 3 4 5 3 chunks +3 lines, -2 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_public_dev.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
elijahtaylor1
PTAL. brettw: I added you since you are an owner of ppapi/ and base/. Let ...
8 years ago (2012-12-13 01:30:11 UTC) #1
jbauman
https://codereview.chromium.org/11464005/diff/2001/base/debug/trace_event_internal.h File base/debug/trace_event_internal.h (right): https://codereview.chromium.org/11464005/diff/2001/base/debug/trace_event_internal.h#newcode917 base/debug/trace_event_internal.h:917: TRACE_EVENT_API_ADD_TRACE_EVENT( Hopefully this won't increase the chrome binary size ...
8 years ago (2012-12-14 00:36:07 UTC) #2
brettw
https://codereview.chromium.org/11464005/diff/2001/ppapi/api/dev/ppb_trace_event_dev.idl File ppapi/api/dev/ppb_trace_event_dev.idl (right): https://codereview.chromium.org/11464005/diff/2001/ppapi/api/dev/ppb_trace_event_dev.idl#newcode26 ppapi/api/dev/ppb_trace_event_dev.idl:26: mem_t GetCategoryEnabled([in] PP_Instance instance, I think all pepper interfaces ...
8 years ago (2012-12-15 00:35:31 UTC) #3
jbauman
On 2012/12/15 00:35:31, brettw wrote: > https://codereview.chromium.org/11464005/diff/2001/ppapi/api/dev/ppb_trace_event_dev.idl > File ppapi/api/dev/ppb_trace_event_dev.idl (right): > > https://codereview.chromium.org/11464005/diff/2001/ppapi/api/dev/ppb_trace_event_dev.idl#newcode26 > ...
8 years ago (2012-12-15 12:25:53 UTC) #4
elijahtaylor1
PTAL, addressed feedback https://codereview.chromium.org/11464005/diff/2001/base/debug/trace_event_internal.h File base/debug/trace_event_internal.h (right): https://codereview.chromium.org/11464005/diff/2001/base/debug/trace_event_internal.h#newcode917 base/debug/trace_event_internal.h:917: TRACE_EVENT_API_ADD_TRACE_EVENT( On 2012/12/14 00:36:07, jbauman wrote: ...
8 years ago (2012-12-18 20:40:31 UTC) #5
brettw
I'm OK not taking PP_Instance in the interface. I think we can skip the thunk ...
8 years ago (2012-12-19 22:29:25 UTC) #6
elijahtaylor1
Thanks for the review, I moved things around as suggested and I think it's looking ...
8 years ago (2012-12-21 00:59:15 UTC) #7
brettw
lgtm https://codereview.chromium.org/11464005/diff/16001/base/debug/trace_event.h File base/debug/trace_event.h (right): https://codereview.chromium.org/11464005/diff/16001/base/debug/trace_event.h#newcode57 base/debug/trace_event.h:57: #define TRACE_EVENT_API_CLASS_EXPORT BASE_EXPORT Is it possible to #undef ...
7 years, 11 months ago (2013-01-02 22:44:25 UTC) #8
elijahtaylor1
https://codereview.chromium.org/11464005/diff/16001/base/debug/trace_event.h File base/debug/trace_event.h (right): https://codereview.chromium.org/11464005/diff/16001/base/debug/trace_event.h#newcode57 base/debug/trace_event.h:57: #define TRACE_EVENT_API_CLASS_EXPORT BASE_EXPORT On 2013/01/02 22:44:25, brettw wrote: > ...
7 years, 11 months ago (2013-01-03 22:11:35 UTC) #9
elijahtaylor1
https://codereview.chromium.org/11464005/diff/16001/base/debug/trace_event.h File base/debug/trace_event.h (right): https://codereview.chromium.org/11464005/diff/16001/base/debug/trace_event.h#newcode57 base/debug/trace_event.h:57: #define TRACE_EVENT_API_CLASS_EXPORT BASE_EXPORT On 2013/01/03 22:11:35, elijahtaylor1 wrote: > ...
7 years, 11 months ago (2013-01-03 22:22:32 UTC) #10
brettw
> Clicked Done before and forgot to edit. This was actually not possible, the > ...
7 years, 11 months ago (2013-01-03 22:23:10 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/elijahtaylor@chromium.org/11464005/25004
7 years, 11 months ago (2013-01-04 21:17:11 UTC) #12
commit-bot: I haz the power
7 years, 11 months ago (2013-01-04 23:37:47 UTC) #13
Message was sent while issue was closed.
Change committed as 175233

Powered by Google App Engine
This is Rietveld 408576698