Primary eng/PM emails
pan....@intel.com, rsc...@chromium.org
Spec
Not a spec yet.
Summary
Add performance.memory to web workers. The functionality is the same as it is in the renderer, returning quantized memory values by default, and real values with a flag “--enable-precise-memory-info”.
Motivation
Developers would like to use it to have memory usage information for web workers.
Compatibility Risk
Low, we have performance.memory shipped for renderer, this only extends the functionality to workers.
Will this feature be supported on all five Blink platforms (Windows, Mac, Linux, Chrome OS and Android)?
Yes
OWP launch tracking bug?
It is the feature request bug:
https://code.google.com/p/chromium/issues/detail?id=326370
Row on feature dashboard?
None. It is an extension of the existing performance.memory.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
Frankly, I would actually unship this non standard property from regular web pages until (and if) it gets a specification.And of course, I would not ship this to workers in the same vein.
Sorry to revive an old thread, but a year later I'm trying to document Performance.idl and WorkerPerformance.idl with spec links, and fail when it comes to performance.memory.performance.memory remains behind an experimental runtime flag in workers, but does anyone know if anything happened on the spec side?
I hope that something comes of it :)
Fwiw the current API was never meant to solve the same problems as memory pressure notifications. It's used internally by Google apps to measure memory usage for testing and measuring the impact of changes in the wild (though I'm not sure how good it is at that given all the factors at play).Shipping memory pressure notifications is great, but doesn't address the needs of performance.memory consumers.
So, um, is it the case that nobody is working on a proposal that would allow us to eventually get rid of performance.memory, or perhaps on standardizing performance.memory itself?
On Fri, Feb 24, 2017 at 7:11 PM, Elliott Sprehn <esp...@chromium.org> wrote:Fwiw the current API was never meant to solve the same problems as memory pressure notifications. It's used internally by Google apps to measure memory usage for testing and measuring the impact of changes in the wild (though I'm not sure how good it is at that given all the factors at play).Shipping memory pressure notifications is great, but doesn't address the needs of performance.memory consumers.Yes and no. Yes, as in I agree that it exposes different data, and "no" in that it might still enable a significant fraction of the cases + and is the best we're willing to expose. Based on discussions at previous F2F's and TPAC [1]:
- Memory layouts change; optimizations come and go; browsers differ in how they allocate, etc. As a result, the consensus in the room (Apple, Moz, Edge, Chrome) was that we don't want to expose raw numbers... E.g. yes the page may be taking some huge amount of memory, but that in itself is not a bad thing if there is plenty of memory to go around; what matters is what happens when you're under pressure.
- There was general consensus that exposing memory pressure events is the valuable bit + it passes the privacy/security sniff test.
Apple + Edge folks were both interested in this API.On Mon, Feb 27, 2017 at 7:53 AM, Philip Jägenstedt <foo...@chromium.org> wrote:So, um, is it the case that nobody is working on a proposal that would allow us to eventually get rid of performance.memory, or perhaps on standardizing performance.memory itself?My preference: ship memory pressure, deprecate performance.memory.