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

Issue 149563004: initial import of Chrome's trace_event into skia framework (Closed)

Created:
6 years, 10 months ago by humper
Modified:
6 years, 10 months ago
Reviewers:
mtklein, nduca, bsalomon, reed1
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

initial import of Chrome's trace_event into skia framework This patch includes a modified version of Chrome's trace_event.h, which provides tracing macros that can easily integrate into the about://tracing framework. Currently the macros link to a default implementation of the (narrow) tracing class SkDefaultEventTracer which does nothing; next step will be to have Chrome subclass the SkEventTracer with a shim that bolts Skia's trace events to its own, allowing Skia's trace events to show up in about://tracing. I've verified that this file builds properly, and when I added a simple scoped TRACE_EVENT0 to SkCanvas::drawRect, along with some debug prints in the NOP implementation of tracing, I saw what I expected printed to the screen. BUG=skia: Committed: http://code.google.com/p/skia/source/detail?r=13256

Patch Set 1 #

Patch Set 2 : use SkOnce to sensibly initialize the singleton #

Total comments: 13

Patch Set 3 : Some cleanups from Mike #

Total comments: 35

Patch Set 4 : address comments from mike and mtklein #

Total comments: 6

Patch Set 5 : SkEventTraceHandle --> SkEventTracer::Handle #

Total comments: 1

Patch Set 6 : Attempt to fix GCC 4.7 build #

Patch Set 7 : rebase #

Patch Set 8 : remove duplicate test entries (error from rebase) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1392 lines, -0 lines) Patch
M gyp/core.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M gyp/tests.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M gyp/utils.gyp View 2 chunks +2 lines, -0 lines 0 comments Download
A include/utils/SkEventTracer.h View 1 2 3 4 1 chunk +75 lines, -0 lines 0 comments Download
A src/core/SkTraceEvent.h View 1 2 3 4 5 1 chunk +1245 lines, -0 lines 0 comments Download
A src/utils/SkEventTracer.cpp View 1 2 3 4 1 chunk +55 lines, -0 lines 0 comments Download
A tests/TracingTest.cpp View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
humper
PTAL
6 years, 10 months ago (2014-01-29 18:19:22 UTC) #1
reed1
Wow. SkTraceEvent.h is gigantic. Are we sure making a skia/generic version is worth it? https://codereview.chromium.org/149563004/diff/40001/include/utils/SkEventTracer.h ...
6 years, 10 months ago (2014-01-29 18:38:40 UTC) #2
nduca
On 2014/01/29 18:38:40, reed1 wrote: > Wow. SkTraceEvent.h is gigantic. Are we sure making a ...
6 years, 10 months ago (2014-01-29 18:45:22 UTC) #3
humper
https://codereview.chromium.org/149563004/diff/40001/include/utils/SkEventTracer.h File include/utils/SkEventTracer.h (right): https://codereview.chromium.org/149563004/diff/40001/include/utils/SkEventTracer.h#newcode19 include/utils/SkEventTracer.h:19: * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, ...
6 years, 10 months ago (2014-01-29 18:52:05 UTC) #4
nduca
Woah didn't mean to mega-reply. More concisely... On 2014/01/29 18:45:22, nduca wrote: > > Wow. ...
6 years, 10 months ago (2014-01-29 19:10:18 UTC) #5
mtklein
Must admit I skimmed the giant file. I am somewhat in favor of taking it ...
6 years, 10 months ago (2014-01-29 20:57:54 UTC) #6
mtklein
On 2014/01/29 20:57:54, mtklein wrote: > Must admit I skimmed the giant file. I am ...
6 years, 10 months ago (2014-01-29 20:58:43 UTC) #7
nduca
I think its safe to customize the header to to skia style, either as part ...
6 years, 10 months ago (2014-01-29 20:59:51 UTC) #8
humper
Also I added a test, which is trivial right now but it actually includes and ...
6 years, 10 months ago (2014-01-29 21:29:07 UTC) #9
mtklein
lgtm, with the caveat that my opinion of things set down here may change as ...
6 years, 10 months ago (2014-01-30 14:18:26 UTC) #10
humper
https://codereview.chromium.org/149563004/diff/80001/include/utils/SkEventTracer.h File include/utils/SkEventTracer.h (right): https://codereview.chromium.org/149563004/diff/80001/include/utils/SkEventTracer.h#newcode25 include/utils/SkEventTracer.h:25: typedef uint32_t SkTraceEventHandle; On 2014/01/30 14:18:26, mtklein wrote: > ...
6 years, 10 months ago (2014-01-30 16:03:38 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/humper@google.com/149563004/90001
6 years, 10 months ago (2014-01-30 18:03:55 UTC) #12
commit-bot: I haz the power
Presubmit check for 149563004-90001 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 10 months ago (2014-01-30 18:03:59 UTC) #13
bsalomon
api lgtm https://codereview.chromium.org/149563004/diff/90001/include/utils/SkEventTracer.h File include/utils/SkEventTracer.h (right): https://codereview.chromium.org/149563004/diff/90001/include/utils/SkEventTracer.h#newcode56 include/utils/SkEventTracer.h:56: virtual SkEventTracer::Handle I doubt any compiler will ...
6 years, 10 months ago (2014-01-30 19:02:20 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/humper@google.com/149563004/90001
6 years, 10 months ago (2014-01-30 19:03:05 UTC) #15
commit-bot: I haz the power
Retried try job too often on Build-Ubuntu12-GCC-x86_64-Release-Trybot for step(s) BuildEverything http://108.170.219.164:10117/buildstatus?builder=Build-Ubuntu12-GCC-x86_64-Release-Trybot&number=1356
6 years, 10 months ago (2014-01-30 20:26:50 UTC) #16
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-30 20:28:35 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/humper@google.com/149563004/90001
6 years, 10 months ago (2014-01-30 20:59:35 UTC) #18
commit-bot: I haz the power
Retried try job too often on Build-Ubuntu12-GCC-x86_64-Release-Trybot for step(s) BuildTests http://108.170.219.164:10117/buildstatus?builder=Build-Ubuntu12-GCC-x86_64-Release-Trybot&number=1361
6 years, 10 months ago (2014-01-30 21:48:34 UTC) #19
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-30 21:49:33 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/humper@google.com/149563004/110001
6 years, 10 months ago (2014-01-30 22:19:50 UTC) #21
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-30 23:34:23 UTC) #22
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-30 23:34:24 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/humper@google.com/149563004/130001
6 years, 10 months ago (2014-01-30 23:35:45 UTC) #24
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-30 23:36:44 UTC) #25
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-30 23:36:45 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/humper@google.com/149563004/150001
6 years, 10 months ago (2014-01-30 23:36:59 UTC) #27
commit-bot: I haz the power
Change committed as 13256
6 years, 10 months ago (2014-01-31 00:04:30 UTC) #28
commit-bot: I haz the power
6 years, 10 months ago (2014-01-31 00:04:38 UTC) #29
Message was sent while issue was closed.
CQ bit was unchecked on CL. Ignoring.

Powered by Google App Engine
This is Rietveld 408576698