Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6c5c593beb7df067cdf84f6d50e0fb7cbfd31e4f
      
https://github.com/WebKit/WebKit/commit/6c5c593beb7df067cdf84f6d50e0fb7cbfd31e4f
  Author: Basuke Suzuki <[email protected]>
  Date:   2025-04-01 (Tue, 01 Apr 2025)

  Changed paths:
    M Source/WebCore/loader/ResourceMonitor.cpp
    M Source/WebCore/page/DiagnosticLoggingKeys.cpp
    M Source/WebCore/page/DiagnosticLoggingKeys.h
    M Source/WebCore/page/LocalFrame.cpp

  Log Message:
  -----------
  [ResourceMonitor] Add telemetry to measure unloading events.
https://bugs.webkit.org/show_bug.cgi?id=290853
rdar://148348965

Reviewed by Ben Nham.

Add telemetry to measure on the field how much following events are triggering:
- iframe is unloaded
- iframe unloading is prevented by throttler
- iframe unloading is prevented by sticky activation

* Source/WebCore/loader/ResourceMonitor.cpp:
(WebCore::diagnosticValues):
(WebCore::ResourceMonitor::checkNetworkUsageExcessIfNecessary):
* Source/WebCore/page/DiagnosticLoggingKeys.cpp:
(WebCore::DiagnosticLoggingKeys::iframeResourceMonitoringKey):
(WebCore::DiagnosticLoggingKeys::unloadCountKey):
(WebCore::DiagnosticLoggingKeys::unloadPreventedByThrottlerCountKey):
(WebCore::DiagnosticLoggingKeys::unloadPreventedByStickyActivationCountKey):
* Source/WebCore/page/DiagnosticLoggingKeys.h:
* Source/WebCore/page/LocalFrame.cpp:
(WebCore::valueDictionaryForResult):
(WebCore::LocalFrame::showResourceMonitoringError):
(WebCore::LocalFrame::reportResourceMonitoringWarning):

Canonical link: https://commits.webkit.org/293059@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