Bug 78507

Summary: Chrome V8 tracing is incomplete
Product: WebKit Reporter: Rick Byers <rbyers>
Component: JavaScriptCoreAssignee: Rick Byers <rbyers>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, eric, jamesr, japhet, nduca, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Rick Byers 2012-02-13 10:37:03 PST
V8Proxy::evaluate has instrumentation to add a 'v8.run' entry in chrome://tracing.  If we're going to indicate when time is being spent inside V8, we should try to be more thorough.  I've found V8Proxy::callFunction to be another significant source in practice, and presumably V8Proxy::newInstance can also be an important entrypoint.
Comment 1 Rick Byers 2012-02-13 10:41:36 PST
Created attachment 126794 [details]
Patch
Comment 2 Eric Seidel (no email) 2012-02-13 11:11:17 PST
Comment on attachment 126794 [details]
Patch

All Changes require a ChangeLog entry.  But otherwise I doubt this is a controvesial change. :)
Comment 3 Adam Barth 2012-02-13 11:25:20 PST
Comment on attachment 126794 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=126794&action=review

> Source/WebCore/bindings/v8/V8Proxy.cpp:431
> +#if PLATFORM_CHROMIUM

This should be #if PLATFORM(CHROMIUM)
Comment 4 Rick Byers 2012-02-13 14:51:51 PST
Created attachment 126842 [details]
Patch
Comment 5 Rick Byers 2012-02-13 14:53:38 PST
Thanks for the feedback - didn't realize people would look at my patch as soon as I uploaded it (as opposed to the Chromium process where we have to explicitly ask someone to review).  Please see updated patch.
Comment 6 Eric Seidel (no email) 2012-02-13 14:55:51 PST
Comment on attachment 126842 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=126842&action=review

> Source/WebCore/ChangeLog:8
> +        No new tests. (OOPS!)

The commit-queue will barf on this line.  You'll need to replace this line with either an explanation of why testing is impossible/impractical (as is likely the case here) or list tests which cover this change.
Comment 7 Rick Byers 2012-02-13 15:21:25 PST
Created attachment 126848 [details]
Patch
Comment 8 Rick Byers 2012-02-13 15:22:05 PST
Comment on attachment 126842 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=126842&action=review

>> Source/WebCore/ChangeLog:8
>> +        No new tests. (OOPS!)
> 
> The commit-queue will barf on this line.  You'll need to replace this line with either an explanation of why testing is impossible/impractical (as is likely the case here) or list tests which cover this change.

Thanks, updated.
Comment 9 Eric Seidel (no email) 2012-02-13 15:34:35 PST
Comment on attachment 126848 [details]
Patch

Thanks.
Comment 10 WebKit Review Bot 2012-02-14 01:13:22 PST
Comment on attachment 126848 [details]
Patch

Clearing flags on attachment: 126848

Committed r107685: <http://trac.webkit.org/changeset/107685>
Comment 11 WebKit Review Bot 2012-02-14 01:13:27 PST
All reviewed patches have been landed.  Closing bug.
Comment 12 Darin Adler 2014-04-24 16:45:27 PDT
Moving all JavaScriptGlue bugs to JavaScriptCore. The JavaScriptGlue framework itself is long gone. And most of the more recent bugs put in this component were put there by people who thought this was for some other aspect of “JavaScript glue” and have nothing to do with the actual original reason for the existence of this component, which was an OS-X-only framework named JavaScriptGlue.