Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2ba834d7c19514f931007371abf2cc44f0e90fc9
https://github.com/WebKit/WebKit/commit/2ba834d7c19514f931007371abf2cc44f0e90fc9
Author: Ben Nham <[email protected]>
Date: 2025-10-22 (Wed, 22 Oct 2025)
Changed paths:
M Source/WebKit/Platform/Logging.h
M Source/WebKit/UIProcess/Cocoa/WebPageProxyCocoa.mm
M Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm
M Source/WebKit/UIProcess/Cocoa/WebProcessProxyCocoa.mm
M Source/WebKit/UIProcess/WebPageProxy.cpp
M Source/WebKit/UIProcess/WebPageProxy.h
M Source/WebKit/UIProcess/WebProcessProxy.cpp
M Source/WebKit/UIProcess/WebProcessProxy.h
Log Message:
-----------
Add frame tree logging notification
https://bugs.webkit.org/show_bug.cgi?id=301213
rdar://163135550
Reviewed by Ryosuke Niwa.
For debugging purposes, it's useful to be able to dump all frame trees. This
adds a notifyd
notification `com.apple.WebKit.logFrameTrees` that does that.
In addition, this adds a preference
`WebKitDebugLogFrameTreesWithPageLoadTiming` which logs frame
trees when PLT results are generated. This is useful for understanding the
state of the frame tree
in perf benchmarks.
* Source/WebKit/Platform/Logging.h:
* Source/WebKit/UIProcess/Cocoa/WebPageProxyCocoa.mm:
(WebKit::WebPageProxy::didGeneratePageLoadTiming):
* Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm:
(WebKit::WebProcessPool::platformInitialize):
* Source/WebKit/UIProcess/Cocoa/WebProcessProxyCocoa.mm:
(WebKit::WebProcessProxy::registerNotifyObservers):
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::logFrameTreeHelper):
(WebKit::logFrameTreeRoot):
(WebKit::WebPageProxy::logFrameTree):
* Source/WebKit/UIProcess/WebPageProxy.h:
* Source/WebKit/UIProcess/WebProcessProxy.cpp:
(WebKit::m_webPermissionController):
* Source/WebKit/UIProcess/WebProcessProxy.h:
Canonical link: https://commits.webkit.org/301959@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications