Closed Bug 1529510 Opened 5 years ago Closed 4 years ago

Implement ProcInfo on android

Categories

(Core :: Widget, enhancement, P1)

All
Android
enhancement

Tracking

()

RESOLVED FIXED
85 Branch
Tracking Status
firefox85 --- fixed

People

(Reporter: tarek, Assigned: tarek)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

Assignee: nobody → tarek
Depends on: 1502917

Also, see how that compares to adb system memory dump

Source code of the dumped memory info

==> https://android.googlesource.com/platform/frameworks/base/+/donut-release2/core/jni/android_os_Debug.cpp

They are reading the /proc/[pid]/smaps file to get the info.

That file is part of the POSIX standard so I guess I can port the linux version and extend it with [smaps] info

Priority: -- → P3
Priority: P3 → P1

I don't have the bandwidth right now, feel free to pick it (it should be failry easy to implement, but requires testing on several androids)

Assignee: tarek → nobody

(In reply to Tarek Ziadé (:tarek) from comment #3)

Source code of the dumped memory info

==> https://android.googlesource.com/platform/frameworks/base/+/donut-release2/core/jni/android_os_Debug.cpp

They are reading the /proc/[pid]/smaps file to get the info.

That file is part of the POSIX standard so I guess I can port the linux version and extend it with [smaps] info

I have in-flight code that will use /proc/[pid]/smaps on Linux, too.

Assignee: nobody → dteller
Status: NEW → ASSIGNED

Just tested: the latest landed version of Linux GetProcInfo seems to work on (at least one version of) Android.

Trying to find out whether our CI tests do run browser_test_procinfo.js and browser_aboutprocesses.js.

With this change, we expose ProcInfo to Android.

Note that we need to leave several empty ProcInfo.{cpp, mm} files lying around as removing them triggers unified build errors.

I'll try and find out how I can remove ProcInfo.cpp without triggering the unified build errors as a second patch.

Attachment #9165354 - Attachment is obsolete: true

Looks like I won't be able to push to try today because of bug 1674346.

Given that today is my last day at Mozilla, Tarek, can I reassign this bug to you?

Flags: needinfo?(tarek)

yes, thx

Flags: needinfo?(tarek)
Assignee: D.O.Teller+bugspam → tarek

Updated, if you want to check it out Aaron

Flags: needinfo?(aklotz)

r+

Flags: needinfo?(aklotz)

Can we land this? I landed e10s-multi on Android on Monday and we'd really like to have about:processes available...

Flags: needinfo?(tarek)
Pushed by tziade@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a8da02cb71d6
Move ProcInfo to processtoolsservice;r=aklotz,mstange
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch
Flags: needinfo?(tarek)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: