WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
158723
Add system tracing points for requestAnimationFrame() workflow
https://bugs.webkit.org/show_bug.cgi?id=158723
Summary
Add system tracing points for requestAnimationFrame() workflow
Said Abou-Hallawa
Reported
2016-06-13 20:03:21 PDT
We need to measure how long each step takes and identify the perf issues especially for iOS.
Attachments
Patch
(22.70 KB, patch)
2016-06-14 17:37 PDT
,
Said Abou-Hallawa
no flags
Details
Formatted Diff
Diff
Patch
(15.66 KB, patch)
2016-06-14 18:36 PDT
,
Said Abou-Hallawa
no flags
Details
Formatted Diff
Diff
Patch
(17.37 KB, patch)
2016-06-15 20:08 PDT
,
Said Abou-Hallawa
no flags
Details
Formatted Diff
Diff
Patch
(16.38 KB, patch)
2016-06-21 14:03 PDT
,
Said Abou-Hallawa
no flags
Details
Formatted Diff
Diff
Patch
(16.32 KB, patch)
2016-06-21 14:40 PDT
,
Said Abou-Hallawa
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Said Abou-Hallawa
Comment 1
2016-06-14 17:37:38 PDT
Created
attachment 281302
[details]
Patch
Simon Fraser (smfr)
Comment 2
2016-06-14 17:42:34 PDT
Comment on
attachment 281302
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=281302&action=review
Too much logging left in this patch!
> Source/WebCore/dom/ScriptedAnimationController.cpp:147 > + WTFLogAlways("ScriptedAnimationController::serviceScriptedAnimations at %f", monotonicTimeNow);
You don't want to commit this logging.
> Source/WebCore/platform/graphics/DisplayRefreshMonitor.cpp:95 > + WTFLogAlways("DisplayRefreshMonitor::displayDidRefresh()");
No logging here.
Said Abou-Hallawa
Comment 3
2016-06-14 18:36:39 PDT
Created
attachment 281309
[details]
Patch
Simon Fraser (smfr)
Comment 4
2016-06-15 09:13:58 PDT
Comment on
attachment 281309
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=281309&action=review
> Source/WebKit2/UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:41 >
No blank line here.
> Source/WebKit2/UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:396 > + TraceScope(RAFUIDidRefreshDisplayStart, RAFUIDidRefreshDisplayEnd);
Odd that you don't name the variable here.
> Source/WebKit2/WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:429 > + TraceScope tracingScope(RAFWK2LayerFlushStart, RAFWK2LayerFlushEnd);
This one...
> Source/WebKit2/WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:494 > + TraceScope tracingScope(RAFWK2BackingStoreFlushStart, RAFWK2BackingStoreFlushEnd);
... and this basically track the same scope. You should remove one of them.
Said Abou-Hallawa
Comment 5
2016-06-15 20:08:16 PDT
Created
attachment 281431
[details]
Patch
Said Abou-Hallawa
Comment 6
2016-06-21 14:00:31 PDT
Comment on
attachment 281309
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=281309&action=review
>> Source/WebKit2/UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:41 >> > > No blank line here.
The blank line is removed.
>> Source/WebKit2/UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:396 >> + TraceScope(RAFUIDidRefreshDisplayStart, RAFUIDidRefreshDisplayEnd); > > Odd that you don't name the variable here.
A variable is added to keep the scope till the end of the function.
>> Source/WebKit2/WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:429 >> + TraceScope tracingScope(RAFWK2LayerFlushStart, RAFWK2LayerFlushEnd); > > This one...
This trace point was removed.
Said Abou-Hallawa
Comment 7
2016-06-21 14:03:17 PDT
Created
attachment 281772
[details]
Patch
Simon Fraser (smfr)
Comment 8
2016-06-21 14:33:06 PDT
Comment on
attachment 281772
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=281772&action=review
> Source/WTF/wtf/SystemTracing.h:82 > +inline void WTFTraceCodeRecord(TracePointCode code)
I don't think this needs the WTF prefix, since it's in the WTF namespace. Let's call it TracePoint().
Said Abou-Hallawa
Comment 9
2016-06-21 14:40:14 PDT
Created
attachment 281775
[details]
Patch
WebKit Commit Bot
Comment 10
2016-06-21 15:30:07 PDT
Comment on
attachment 281775
[details]
Patch Clearing flags on attachment: 281775 Committed
r202297
: <
http://trac.webkit.org/changeset/202297
>
WebKit Commit Bot
Comment 11
2016-06-21 15:30:13 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