Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 50e6ed4537a493905e5375dda138dfd3279ba8ba
      
https://github.com/WebKit/WebKit/commit/50e6ed4537a493905e5375dda138dfd3279ba8ba
  Author: Yusuke Suzuki <ysuz...@apple.com>
  Date:   2025-08-14 (Thu, 14 Aug 2025)

  Changed paths:
    M Source/WTF/wtf/SystemTracing.h
    M Source/WTF/wtf/glib/SysprofAnnotator.h
    M Source/WebCore/page/Performance.cpp

  Log Message:
  -----------
  Do not use synthetic signposts
https://bugs.webkit.org/show_bug.cgi?id=297382
rdar://158278306

Reviewed by Ben Nham.

Synthetic signposts works well when it is directly emitted to
os_signpost. However WebContent process redirects os_log to UIProcess on
new OS and the entire message gets reinterpret as normal message
payload. So begin_time and end_time annotation does not work correctly
when it gets redirected.

This patch fixes this issue by avoiding synthetic signposts. Instead, we
introduce WTFEmitSignpostWithSpecificTime family. They allow us to
include spcific time point for signpost. And instead of combining begin
and end, we emit both with appropriate time point. So then each one gets
correctly redirected as begin and end signpost with specific time.

* Source/WTF/wtf/SystemTracing.h:
* Source/WTF/wtf/glib/SysprofAnnotator.h:
* Source/WebCore/page/Performance.cpp:
(WebCore::Performance::measure):

Canonical link: https://commits.webkit.org/298687@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to