RESOLVED FIXED293150
Report extra memory usage to JavaScriptCore from the Model Element
https://bugs.webkit.org/show_bug.cgi?id=293150
Summary Report extra memory usage to JavaScriptCore from the Model Element
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.