[Webkit-unassigned] [Bug 86636] New: Expose memory usage statistics to web platform

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 16 08:42:54 PDT 2012


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

           Summary: Expose memory usage statistics to web platform
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: tonyg at chromium.org
                CC: abarth at webkit.org, yurys at chromium.org
        Depends on: 80444,80787


This is a cover-bug to track MemoryInfo work.

performance.memory and console.memory both provide access to the MemoryInfo interface as follows:
> performance.memory
  MemoryInfo
    jsHeapSizeLimit: 767557632
    totalJSHeapSize: 8244736
    usedJSHeapSize: 3065200

Currently access to this information is disabled by default. Chromium allows it to be enabled with the --enable-memory-info command line flag and apparently at least one organization has enabled that flag by default for its users.

It is not enabled by default due to privacy considerations. Specifically, exposing memory usage could reveal information about the user across domains (such as whether they are signed-in). That being said, because of how easy it is to leak memory on the web, it would be quite valuable for web apps to be able to monitor memory usage for real users.

So it is worth determining whether mitigation strategies such as the one in bug 80444 can make this information safe for the web.
- If it can't be made safe: we should rip out the interface and relegate memory usage statistics to the Inspector.
- If it can be made safe: we should make those changes, publish a specification (public-web-perf is interested), only expose it at a single point (console or performance), and vendor prefix the interface (webkitMemory).

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list