Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e812b451c525841463ca33c35c160cbb2d23f894
      
https://github.com/WebKit/WebKit/commit/e812b451c525841463ca33c35c160cbb2d23f894
  Author: Georges Basile Stavracas Neto <[email protected]>
  Date:   2025-04-01 (Tue, 01 Apr 2025)

  Changed paths:
    M Source/WTF/wtf/SystemTracing.h
    M Source/WTF/wtf/glib/SysprofAnnotator.h
    M Source/WebCore/platform/graphics/texmap/TextureMapperFPSCounter.cpp

  Log Message:
  -----------
  [WPE][GTK][WTF] Add support for tracing counters with Sysprof
https://bugs.webkit.org/show_bug.cgi?id=282535

Reviewed by Adrian Perez de Castro.

Add a new tracing macro `WTFSetCounter(name, value)` which, on systems
with Sysprof enabled, translates to sysprof_collector_define_counters().
If the mark isn't yet registered on Sysprof, register it on demand on
first use.

This macro is a stub on Apple platforms.

As a proof of concept, implement the FPS counter tracing using the pre-
existing FPS accounting code.

* Source/WTF/wtf/SystemTracing.h:
* Source/WTF/wtf/glib/SysprofAnnotator.h:
* Source/WebCore/platform/graphics/texmap/TextureMapperFPSCounter.cpp:
(WebCore::TextureMapperFPSCounter::updateFPSAndDisplay):

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



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

Reply via email to