While .minimizeMemoryUsage() is just the "3x memory-pressure notifications" dance in C++ at the moment, i.e. equivalent to what memchaser uses anyway, the child-mmu-request is the more interesting bit. Sending this notification will cause child processes to call .minimizeMemoryUsage(). And since there are child processes even on Desktop these days, e.g. the thumbnailer for about:home and "New e10s window" in Nightly, it would be good for memchaser to send the notification as well.
The toolkit (aboutMemory.js) implementation looks like this, these days:
While
.minimizeMemoryUsage()
is just the "3x memory-pressure notifications" dance in C++ at the moment, i.e. equivalent to what memchaser uses anyway, thechild-mmu-request
is the more interesting bit. Sending this notification will cause child processes to call.minimizeMemoryUsage()
. And since there are child processes even on Desktop these days, e.g. the thumbnailer for about:home and "New e10s window" in Nightly, it would be good for memchaser to send the notification as well.