[Webkit-unassigned] [Bug 205366] New: [JSC] Memory usage statistics should be attainable without WebCore

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 17 16:43:04 PST 2019


https://bugs.webkit.org/show_bug.cgi?id=205366

            Bug ID: 205366
           Summary: [JSC] Memory usage statistics should be attainable
                    without WebCore
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ross.kirsling at sony.com

PerformanceLogging::memoryUsageStatistics puts together some very useful information, most of which comes from vm.heap and not from WebCore itself:
https://github.com/WebKit/webkit/blob/master/Source/WebCore/page/PerformanceLogging.cpp#L54-L76

As such it would be nice to have this information available in a JSC-only context.

There are two possible approaches I can see:
1. Add methods to $vm. $vm.globalObjectCount() already exists so we could just add a few more.
2. Add a private C API (say, JSMemoryUsageStatistics under JSBasePrivate.h) which builds a JS object of this information much like the WebCore version.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191218/d667daeb/attachment.htm>


More information about the webkit-unassigned mailing list