summaryrefslogtreecommitdiff
path: root/core/java/android/app/ActivityThread.java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2009-08-11 18:56:41 -0700
committerDianne Hackborn <hackbod@google.com>2009-08-11 18:56:41 -0700
commit82e1ee93eece8fb0aec6acc3ef4ee7b1c86feec7 (patch)
treeb7b376fc569f6d6fde7c69c8f832f3c52152f408 /core/java/android/app/ActivityThread.java
parentb3fa1084ba31698fa5c58150a713d7abbadb1cd2 (diff)
Fix issue #2048263: More debugging information
We now hopefully do better about generating the anr reports, and include information about the malloc loaded assets in meminfo.
Diffstat (limited to 'core/java/android/app/ActivityThread.java')
-rw-r--r--core/java/android/app/ActivityThread.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/app/ActivityThread.java b/core/java/android/app/ActivityThread.java
index 32a289122cf2..e045105ce945 100644
--- a/core/java/android/app/ActivityThread.java
+++ b/core/java/android/app/ActivityThread.java
@@ -1701,6 +1701,14 @@ public final class ActivityThread {
printRow(pw, TWO_COUNT_COLUMNS, "numPagers:", stats.numPagers, "inactivePageKB:",
(stats.totalBytes - stats.referencedBytes) / 1024);
printRow(pw, ONE_COUNT_COLUMN, "activePageKB:", stats.referencedBytes / 1024);
+
+ // Asset details.
+ String assetAlloc = AssetManager.getAssetAllocations();
+ if (assetAlloc != null) {
+ pw.println(" ");
+ pw.println(" Asset Allocations");
+ pw.print(assetAlloc);
+ }
}
private void printRow(PrintWriter pw, String format, Object...objs) {