summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/WeightWatcher.java
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@android.com>2013-07-07 17:16:49 -0500
committerDaniel Sandler <dsandler@android.com>2013-07-07 23:13:51 -0500
commit0adfc5a75580dcf3294da95b378a27c4bcd015fb (patch)
treedc0a5ee64376ba344ef587106367f7c635e4f7af /src/com/android/launcher3/WeightWatcher.java
parenta29949d2efae23166e95817a068aff517f81cde2 (diff)
downloadandroid_packages_apps_Trebuchet-0adfc5a75580dcf3294da95b378a27c4bcd015fb.tar.gz
android_packages_apps_Trebuchet-0adfc5a75580dcf3294da95b378a27c4bcd015fb.tar.bz2
android_packages_apps_Trebuchet-0adfc5a75580dcf3294da95b378a27c4bcd015fb.zip
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
Diffstat (limited to 'src/com/android/launcher3/WeightWatcher.java')
-rw-r--r--src/com/android/launcher3/WeightWatcher.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/launcher3/WeightWatcher.java b/src/com/android/launcher3/WeightWatcher.java
index 2eac063c0..70b8afea8 100644
--- a/src/com/android/launcher3/WeightWatcher.java
+++ b/src/com/android/launcher3/WeightWatcher.java
@@ -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
);