getScreenDepth does disk I/O on java UI thread
Categories
(Firefox for Android Graveyard :: General, defect, P3)
Tracking
(firefox-esr60 wontfix, firefox-esr68 wontfix, firefox67 wontfix, firefox67.0.1 wontfix, firefox68 wontfix, firefox69 fixed)
People
(Reporter: kats, Assigned: whawkins)
References
Details
(Whiteboard: [geckoview:p3])
Attachments
(1 file)
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
This is still an issue. We read from /proc/meminfo to determine the total available memory on the device. As long as we do not plan on supporting Android OS versions < 16, we can replace this disk I/O with https://developer.android.com/reference/android/app/ActivityManager.MemoryInfo.html#totalMem.
Does this seem sane? If so, I will be glad to make the change.
Comment 2•6 years ago
|
||
(In reply to Will Hawkins from comment #1)
As long as we do not plan on supporting Android OS versions < 16, we can replace this disk I/O with https://developer.android.com/reference/android/app/ActivityManager.MemoryInfo.html#totalMem.
Does this seem sane? If so, I will be glad to make the change.
Good news! Fennec requires Android 4.1 (API level 16) or later, so feel free to replace this code.
For comparison, GeckoView requires Android OS version 4.3 (API Level 18) and Fenix requires Android 5.0 (API level 21).
Assignee | ||
Comment 3•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Comment 4•6 years ago
|
||
Comment on attachment 9069470 [details]
Bug 894567: Use MemoryInfo.totalMem to get the device's total memory rather than parse /proc/meminfo.
f+
LGTM, but I don't have the authority to review this code. :)
Assignee | ||
Updated•6 years ago
|
Pushed by nbeleuzu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/691239688a43
Use MemoryInfo.totalMem to get the device's total memory rather than parse /proc/meminfo. r=nalexander
Comment 6•6 years ago
|
||
68=wontfix because we don't need to uplift this optimization to Beta.
Comment 7•6 years ago
|
||
bugherder |
Comment 8•6 years ago
|
||
esr68=wontfix because we don't need to uplift this optimization for Fennec 68.
Updated•4 years ago
|
Description
•