Bug 293150

Summary: Report extra memory usage to JavaScriptCore from the Model Element
Product: WebKit Reporter: Aleksei Marchenko <aleksei>
Component: WebKit Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   

Aleksei Marchenko
Reported 2025-05-16 14:32:14 PDT
Additional memory used outside of GC or Web Process has to be reported via reportExtraMemoryAllocated/SlotVisitor::reportExtraMemoryVisited/SlotVisitor::reportExternalMemoryVisited JSC APIs. That should help GC to prioritize heavier objects. A good example is HTMLCanvasElement (CanvasBase). in IDL: [ ReportExtraMemoryCost, ReportExternalMemoryCost, ] In C++: size_t memoryCost() const; size_t externalMemoryCost() const;
Attachments
Aleksei Marchenko
Comment 1 2025-05-16 14:56:07 PDT
Aleksei Marchenko
Comment 2 2025-05-16 14:57:11 PDT
EWS
Comment 3 2025-05-21 11:37:02 PDT
Committed 295220@main (910c6466a03f): <https://commits.webkit.org/295220@main> Reviewed commits have been landed. Closing PR #45516 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.