Further MemoryTracker robustness:
- grab a copy of the tracked processes list in the dumper - scan running processes when memorytracker starts to catch pids that may have survived a crash of the tracker's process - use RunningServiceInfo to figure out roughly how long a service scanned in this way has been alive Change-Id: I861642f07183e3945f7a7a41e1e5144567e17e13
This commit is contained in:
1 parent
a29949d2ef
commit
0adfc5a755
3 files changed
+32
-7
No files matched your search
@@ -213,7 +213,11 @@ public class WeightWatcher extends LinearLayout {
|
||||
public void update() {
|
||||
//Log.v("WeightWatcher.ProcessWatcher",
|
||||
// "MSG_UPDATE pss=" + mMemInfo.currentPss);
|
||||
mText.setText("(" + mMemInfo.name + "/" + mPid + ") up " + getUptimeString()
|
||||
mText.setText("(" + mPid
|
||||
+ (mPid == android.os.Process.myPid()
|
||||
? "/A" // app
|
||||
: "/S") // service
|
||||
+ ") up " + getUptimeString()
|
||||
+ " P=" + mMemInfo.currentPss
|
||||
+ " U=" + mMemInfo.currentUss
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user