Source/WTF/ChangeLog

 12020-11-11 Wenson Hsieh <wenson_hsieh@apple.com>
 2
 3 Add system trace points for the GPU process display list processing loop
 4 https://bugs.webkit.org/show_bug.cgi?id=218824
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 * wtf/SystemTracing.h:
 9
1102020-11-10 Yusuke Suzuki <ysuzuki@apple.com>
211
312 Unreviewed, reverting r269403

Source/WebKit/ChangeLog

 12020-11-11 Wenson Hsieh <wenson_hsieh@apple.com>
 2
 3 Add system trace points for the GPU process display list processing loop
 4 https://bugs.webkit.org/show_bug.cgi?id=218824
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 Capture the time spent applying display list items in the GPU process with a pair of new trace points, to aid
 9 performance debugging and analysis.
 10
 11 * GPUProcess/graphics/RemoteRenderingBackend.cpp:
 12 (WebKit::RemoteRenderingBackend::wakeUpAndApplyDisplayList):
 13
1142020-11-11 Wenson Hsieh <wenson_hsieh@apple.com>
215
316 [Concurrent display lists] Add an initial implementation of concurrent display list rendering

Source/WTF/wtf/SystemTracing.h

@@enum TracePointCode {
124124 ProcessLaunchEnd,
125125 InitializeSandboxStart,
126126 InitializeSandboxEnd,
 127
 128 GPUProcessRange = 16000,
 129 WakeUpAndApplyDisplayListStart,
 130 WakeUpAndApplyDisplayListEnd,
127131};
128132
129133#ifdef __cplusplus

Source/WebKit/GPUProcess/graphics/RemoteRenderingBackend.cpp

3434#include "RemoteRenderingBackendMessages.h"
3535#include "RemoteRenderingBackendProxyMessages.h"
3636#include <wtf/CheckedArithmetic.h>
 37#include <wtf/SystemTracing.h>
3738
3839namespace WebKit {
3940using namespace WebCore;

@@void RemoteRenderingBackend::applyDisplayListsFromHandle(ImageBuffer& destinatio
169170
170171void RemoteRenderingBackend::wakeUpAndApplyDisplayList(DisplayList::ItemBufferIdentifier initialIdentifier, uint64_t initialOffset, RenderingResourceIdentifier destinationBufferIdentifier)
171172{
 173 TraceScope tracingScope(WakeUpAndApplyDisplayListStart, WakeUpAndApplyDisplayListEnd);
172174 auto imageBuffer = m_remoteResourceCache.cachedImageBuffer(destinationBufferIdentifier);
173175 if (UNLIKELY(!imageBuffer)) {
174176 // FIXME: Add a message check to terminate the web process.

Tools/ChangeLog

 12020-11-11 Wenson Hsieh <wenson_hsieh@apple.com>
 2
 3 Add system trace points for the GPU process display list processing loop
 4 https://bugs.webkit.org/show_bug.cgi?id=218824
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 * Tracing/SystemTracePoints.plist:
 9
1102020-11-10 Noam Rosenthal <noam@webkit.org>
211
312 Unreviewed, cleanup my watchlist entries.

Tools/Tracing/SystemTracePoints.plist

505505 <key>CodeEnd</key>
506506 <string>14006</string>
507507 </dict>
 508 <dict>
 509 <key>Name</key>
 510 <string>Wake up and apply display list</string>
 511 <key>Type</key>
 512 <string>Interval</string>
 513 <key>Component</key>
 514 <string>47</string>
 515 <key>CodeBegin</key>
 516 <string>16001</string>
 517 <key>CodeEnd</key>
 518 <string>16002</string>
 519 </dict>
508520 </array>
509521 </dict>
510522 </array>