How to call Garbage Collect on Firefox using Javascript?
I wonder if someone could help on some questions about `GC` on `firefox`.
- Q1-** Is possible to call the action performed when I click on the button `GC` using javascript?
https://i.stack.imgur.com/JgoNx.png
- Q2-** on `about:config` there's an option `javascript.options.gc_delay.full`, is this option the same than clicking on the button `gc` on `about:memory`?
https://i.stack.imgur.com/dimKW.png
- Q3-** I'm searching about of what of these enumerated options does, and found that:
`1-` Is the default amount of time to wait from the user being idle to starting a shrinking GC.
`2-` `javascript.options.gc_delay` ??
`3-` `javascript.options.gc_delay.full` ??
`4-` `javascript.options.ion.full.threshold` ??
If someone knows the answer to these questions.
I wonder if someone could help on some questions about `GC` on `firefox`.
**Q1-** Is possible to call the action performed when I click on the button `GC` using javascript?
https://i.stack.imgur.com/JgoNx.png
**Q2-** on `about:config` there's an option `javascript.options.gc_delay.full`, is this option the same than clicking on the button `gc` on `about:memory`?
https://i.stack.imgur.com/dimKW.png
**Q3-** I'm searching about of what of these enumerated options does, and found that:
`1-` Is the default amount of time to wait from the user being idle to starting a shrinking GC.
`2-` `javascript.options.gc_delay` ??
`3-` `javascript.options.gc_delay.full` ??
`4-` `javascript.options.ion.full.threshold` ??
If someone knows the answer to these questions.
All Replies (1)
The best way to get information about specific prefs is to search the Firefox source code.
- https://searchfox.org/mozilla-release/search?q=gc_delay&path=&case=false®exp=false
- https://searchfox.org/mozilla-release/source/modules/libpref/init/StaticPrefList.yaml#5104
See also: