dump about:memory-like info on demand

RESOLVED FIXED in Firefox 18

Status

()

defect
RESOLVED FIXED
7 years ago
7 years ago

People

(Reporter: gbrown, Assigned: kats)

Tracking

unspecified
Firefox 18
x86
Android
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

When looking at mochitests that cause OOM (see bug 775227 and related), I often see Fennec receive the onLowMemory notification shortly before the tests fail and / or Fennec is killed. Dumping memory information to logcat during onLowMemory might provide useful information about the causes of these failures.
Note bug 784040 -- might want to do this at the same time / in the same memory observer.
This adds a Java -> JS message to dump about:memory stats and exposes it via an intent. Some of this can be axed when bug 788021 lands but I want something in for now so that I can cron a script to run a benchmark.
Attachment #663046 - Flags: review?(snorp)
Attachment #663046 - Flags: review?(snorp) → review+
Renaming the bug in light of https://bugzilla.mozilla.org/show_bug.cgi?id=792155#c1 and what the patch actually does.
Summary: dump about:memory-like info onLowMemory → dump about:memory-like info on demand
https://hg.mozilla.org/mozilla-central/rev/e716df0361db
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 18
You need to log in before you can comment on or make changes to this bug.