Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 81b1ab5cf1c83eaace71f65207569561ad8d0ba6 https://github.com/WebKit/WebKit/commit/81b1ab5cf1c83eaace71f65207569561ad8d0ba6 Author: Ben Nham <n...@apple.com> Date: 2024-03-13 (Wed, 13 Mar 2024)
Changed paths: M Source/WTF/wtf/MemoryPressureHandler.cpp M Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStore.mm M Source/WebKit/UIProcess/API/Cocoa/_WKWebsiteDataStoreDelegate.h M Source/WebKit/UIProcess/WebPageProxy.cpp M Source/WebKit/UIProcess/WebPageProxy.h M Source/WebKit/UIProcess/WebProcessProxy.cpp M Source/WebKit/UIProcess/WebsiteData/WebsiteDataStoreClient.h M Tools/TestWebKitAPI/Tests/WebKitCocoa/MemoryFootprintThreshold.mm Log Message: ----------- Provide canSuspend info to didExceedMemoryFootprintThreshold event https://bugs.webkit.org/show_bug.cgi?id=270646 rdar://124165615 Reviewed by Chris Dumez. We fire the didExceedMemoryFootprintThreshold analytics event to detect sites and/or processes with excessive memory usage. We also want to log whether or not those sites are ever allowed to suspend in the event. I also changed the event to log the threshold being violated rather than the actual footprint value of the process. This works better with the way we want to analyze the data. * Source/WTF/wtf/MemoryPressureHandler.cpp: (WTF::MemoryPressureHandler::measurementTimerFired): * Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStore.mm: * Source/WebKit/UIProcess/API/Cocoa/_WKWebsiteDataStoreDelegate.h: * Source/WebKit/UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::hasAllowedToRunInTheBackgroundActivity const): * Source/WebKit/UIProcess/WebPageProxy.h: * Source/WebKit/UIProcess/WebProcessProxy.cpp: (WebKit::WebProcessProxy::didExceedMemoryFootprintThreshold): * Source/WebKit/UIProcess/WebsiteData/WebsiteDataStoreClient.h: (WebKit::WebsiteDataStoreClient::didExceedMemoryFootprintThreshold): * Tools/TestWebKitAPI/Tests/WebKitCocoa/MemoryFootprintThreshold.mm: (-[MemoryFootprintDelegate websiteDataStore:domain:didExceedMemoryFootprintThreshold:withPageCount:processLifetime:inForeground:wasPrivateRelayed:canSuspend:]): (-[MemoryFootprintDelegate websiteDataStore:domain:didExceedMemoryFootprintThreshold:withPageCount:processLifetime:inForeground:wasPrivateRelayed:]): Deleted. Canonical link: https://commits.webkit.org/276032@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