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.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -664,6 +664,11 @@ public final class AssetManager {
|
||||
*/
|
||||
public native static final int getGlobalAssetCount();
|
||||
|
||||
/**
|
||||
* {@hide}
|
||||
*/
|
||||
public native static final String getAssetAllocations();
|
||||
|
||||
/**
|
||||
* {@hide}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user