Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory is not cleaned #3

Open
arkotro opened this issue Jan 20, 2022 · 1 comment
Open

Memory is not cleaned #3

arkotro opened this issue Jan 20, 2022 · 1 comment

Comments

@arkotro
Copy link

arkotro commented Jan 20, 2022

All I have to do is set var periodicalClean = true ?
For me, memory is not cleaned. I have 91.5.0esr (64-bit) version

@garywill
Copy link
Owner

All I have to do is set var periodicalClean = true ?

Yes

function cleanMemory() {
Components.utils.schedulePreciseGC( function () {
const gMgr = Cc["@mozilla.org/memory-reporter-manager;1"].getService(
Ci.nsIMemoryReporterManager
);
Services.obs.notifyObservers(null, "child-mmu-request");
gMgr.minimizeMemoryUsage( function() {} );
});
}

https://searchfox.org/mozilla-central/source/toolkit/components/aboutmemory/content/aboutMemory.js#522

For me, memory is not cleaned

What did you get?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants