Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 01d8e1eba767b17f0db868580e16b5bae72ab36d
https://github.com/WebKit/WebKit/commit/01d8e1eba767b17f0db868580e16b5bae72ab36d
Author: Vitaly Dyachkov <[email protected]>
Date: 2026-03-05 (Thu, 05 Mar 2026)
Changed paths:
M Source/WebKit/Shared/WebEvent.cpp
M Source/WebKit/Shared/WebEvent.h
M Source/WebKit/Shared/WebEvent.serialization.in
M Source/WebKit/Shared/WebEventType.h
M Source/WebKit/UIProcess/WebPageProxy.cpp
M Source/WebKit/WPEPlatform/wpe/wayland/WPEWaylandSeat.cpp
Log Message:
-----------
[GTK][WPE] Add Sysprof marks for mouse events
https://bugs.webkit.org/show_bug.cgi?id=308737
Reviewed by Adrian Perez de Castro.
Mouse event processing in the UI process begins in
`WebPageProxy::handleMouseEvent()` and ends in
`WebPageProxy::mouseEventHandlingCompleted()`.
To enable tracking of the time spent handling these events,
corresponding `WTFBeginSignpost()`/`WTFEndSignpost()` calls have been
added to these methods.
To distinguish between multiple mouse events, a unique identifier is now
assigned to each `WebEvent` and included in the signpost name.
Additionally, signposts are emitted for Wayland `motion` and `button`
events in `WPEWaylandSeat` to mark the start of event processing.
* Source/WebKit/Shared/WebEvent.cpp:
(WebKit::generateSignpostIdentifier):
(WebKit::WebEvent::WebEvent):
* Source/WebKit/Shared/WebEvent.h:
(WebKit::WebEvent::signpostIdentifier const):
* Source/WebKit/Shared/WebEvent.serialization.in:
* Source/WebKit/Shared/WebEventType.h:
(WebKit::toString):
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::handleMouseEvent):
(WebKit::WebPageProxy::mouseEventHandlingCompleted):
* Source/WebKit/WPEPlatform/wpe/wayland/WPEWaylandSeat.cpp:
Canonical link: https://commits.webkit.org/308715@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications