Open Bug 1149379 Opened 10 years ago Updated 3 years ago

Force GC/CC button

Categories

(DevTools :: Memory, enhancement, P3)

37 Branch
x86
macOS
enhancement

Tracking

(Not tracked)

REOPENED

People

(Reporter: jsantell, Unassigned)

References

(Blocks 2 open bugs)

Details

No description provided.
Not sure this is actually useful? Our APIs only deal with retained memory in the heap graph, not allocated-but-no-longer-retained memory. As such, you should see the exact same heap graph after every GC. The exception to prove the rule is generated JIT code, some of which is thrown away on certain GCs.
Has STR: --- → irrelevant
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
Talked to some folks, and this could be useful in certain circumstances.
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Priority: -- → P3
Product: Firefox → DevTools

From ochameau, various implementations of memory collection:

GC in DAMP (Devtools' Talos performance regression tests), based on about:memory:
[1] https://searchfox.org/mozilla-central/source/testing/talos/talos/tests/devtools/addon/content/damp.js#77-91

Another GC in tests, slightly different, with an interesting comment:
[2] https://searchfox.org/mozilla-central/source/testing/specialpowers/content/specialpowersAPI.js#1580-1600

GC in mochitests, used before leak check:
[3] https://searchfox.org/mozilla-central/source/testing/mochitest/browser-test.js#952-961

GC used in devtools' memory-aware mochitests:
[4] https://searchfox.org/mozilla-central/source/devtools/client/framework/test/allocations/browser_allocations_target.js#22-32

The DAMP code has been reused here:
[5] https://searchfox.org/mozilla-central/source/toolkit/components/extensions/test/xpcshell/test_ext_contexts_gc.js#31-44

An experiment from ochameau where he ran GC until memory increases, which proved quite stable but also time-consuming:
[6] https://hg.mozilla.org/try/rev/ce1b333bc173e724b06c57bb0e308868690ce447#l1.89

Bug 1407826 has a lot of information, especially bug 1407826 comment 13 compared the different ways to GC.

Type: defect → enhancement

From ochameau still, he seems to think that a GC/CC is useful before capturing. I'd like to prove that with a manual test before doing any work here.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.