WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
163617
Add JSC option to show time spent in each optimization phase
https://bugs.webkit.org/show_bug.cgi?id=163617
Summary
Add JSC option to show time spent in each optimization phase
Michael Saboff
Reported
2016-10-18 13:41:32 PDT
This option would provide more detail than the reportXXXCompileTimes options. It would show the times for each phase of DFG / FTL compilation.
Attachments
Patch
(3.97 KB, patch)
2016-10-18 13:53 PDT
,
Michael Saboff
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Michael Saboff
Comment 1
2016-10-18 13:53:26 PDT
Created
attachment 291981
[details]
Patch
Mark Lam
Comment 2
2016-10-18 13:56:48 PDT
Comment on
attachment 291981
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=291981&action=review
> Source/JavaScriptCore/dfg/DFGPhase.h:82 > + before = monotonicallyIncreasingTimeMS();
Given that the DFG can run on a separate JIT thread concurrently, should you be using currentCPUTime() instead?
Saam Barati
Comment 3
2016-10-18 13:57:26 PDT
Comment on
attachment 291981
[details]
Patch r=me
Michael Saboff
Comment 4
2016-10-18 14:04:07 PDT
(In reply to
comment #2
)
> Comment on
attachment 291981
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=291981&action=review
> > > Source/JavaScriptCore/dfg/DFGPhase.h:82 > > + before = monotonicallyIncreasingTimeMS(); > > Given that the DFG can run on a separate JIT thread concurrently, should you > be using currentCPUTime() instead?
All of the other time stats for the compiler tiers use monotonicallyIncreasingTime(). Given that the compilation threads "should" run without being preempted, I think we're fine.
WebKit Commit Bot
Comment 5
2016-10-18 14:31:40 PDT
Comment on
attachment 291981
[details]
Patch Clearing flags on attachment: 291981 Committed
r207491
: <
http://trac.webkit.org/changeset/207491
>
WebKit Commit Bot
Comment 6
2016-10-18 14:31:45 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug