RESOLVED FIXED 70618
[chromium] Add isTraceEventEnabledForCategory to PlatformSupport.
https://bugs.webkit.org/show_bug.cgi?id=70618
Summary [chromium] Add isTraceEventEnabledForCategory to PlatformSupport.
Nat Duca
Reported 2011-10-21 10:46:14 PDT
[chromium] Add isTraceEventEnabledForCategory to PlatformSupport.
Attachments
Patch (3.59 KB, patch)
2011-10-21 10:47 PDT, Nat Duca
no flags
Blanket enable instead of per-category (3.44 KB, patch)
2011-10-21 13:33 PDT, Nat Duca
fishd: review+
Nat Duca
Comment 1 2011-10-21 10:47:07 PDT
WebKit Review Bot
Comment 2 2011-10-21 10:50:08 PDT
Please wait for approval from fishd@chromium.org before submitting because this patch contains changes to the Chromium public API.
Nat Duca
Comment 3 2011-10-21 13:33:18 PDT
Created attachment 112011 [details] Blanket enable instead of per-category
Darin Fisher (:fishd, Google)
Comment 4 2011-10-23 23:27:21 PDT
Comment on attachment 112011 [details] Blanket enable instead of per-category View in context: https://bugs.webkit.org/attachment.cgi?id=112011&action=review > Source/WebKit/chromium/public/WebKitPlatformSupport.h:233 > + virtual bool isTraceEventEnabled() const { return true; } actually, are you sure you don't want to invert this? it seems better to push settings down into webkit instead of making webkit ask the embedder each and every time via a virtual function call. most other things like this work by pushing a setting down into WebKit. see for example WebKit::setLayoutTestMode or WebKit::WebSecurityPolicy. perhaps this could be a method in WebKit.h? setTraceEventEnabled(bool)? it seems like a corresponding method could exist in TraceEvent.h.
Nat Duca
Comment 5 2011-10-24 14:05:02 PDT
You're totally right about inverting it. I investigated this a bit further and I think I know how we should do it. Unfortunately, doing that inversion means we also have to switch from having traceBegin/traceEnd to the addTraceEvent style. I filed a bug to do this, and I'm going to beg jbates to do it. :) https://bugs.webkit.org/show_bug.cgi?id=70761
Nat Duca
Comment 6 2011-10-24 14:19:26 PDT
Note You need to log in before you can comment on or make changes to this bug.