diff options
| author | Dianne Hackborn <hackbod@google.com> | 2011-08-05 17:50:29 -0700 |
|---|---|---|
| committer | Dianne Hackborn <hackbod@google.com> | 2011-08-05 18:18:05 -0700 |
| commit | b437e090ec03a2bab10bdfcb9484577a7f34e157 (patch) | |
| tree | 86424e259db63fb8c7780a433b2eb808950fbc49 /core/java/android/app/ApplicationThreadNative.java | |
| parent | 284585aa835096111c7129b330f458b75ed27a8d (diff) | |
Improved memory use reporting.
Change-Id: I38e53e6228bba92a142bafeedb5af8df4e4e5724
Diffstat (limited to 'core/java/android/app/ApplicationThreadNative.java')
| -rw-r--r-- | core/java/android/app/ApplicationThreadNative.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/core/java/android/app/ApplicationThreadNative.java b/core/java/android/app/ApplicationThreadNative.java index 9a5b527d7c5b..bea057eb2677 100644 --- a/core/java/android/app/ApplicationThreadNative.java +++ b/core/java/android/app/ApplicationThreadNative.java @@ -491,11 +491,13 @@ public abstract class ApplicationThreadNative extends Binder { data.enforceInterface(IApplicationThread.descriptor); ParcelFileDescriptor fd = data.readFileDescriptor(); + boolean checkin = data.readInt() != 0; + boolean all = data.readInt() != 0; String[] args = data.readStringArray(); Debug.MemoryInfo mi = null; if (fd != null) { try { - mi = dumpMemInfo(fd.getFileDescriptor(), args); + mi = dumpMemInfo(fd.getFileDescriptor(), checkin, all, args); } finally { try { fd.close(); @@ -1049,11 +1051,14 @@ class ApplicationThreadProxy implements IApplicationThread { IBinder.FLAG_ONEWAY); } - public Debug.MemoryInfo dumpMemInfo(FileDescriptor fd, String[] args) throws RemoteException { + public Debug.MemoryInfo dumpMemInfo(FileDescriptor fd, boolean checkin, boolean all, + String[] args) throws RemoteException { Parcel data = Parcel.obtain(); Parcel reply = Parcel.obtain(); data.writeInterfaceToken(IApplicationThread.descriptor); data.writeFileDescriptor(fd); + data.writeInt(checkin ? 1 : 0); + data.writeInt(all ? 1 : 0); data.writeStringArray(args); mRemote.transact(DUMP_MEM_INFO_TRANSACTION, data, reply, 0); reply.readException(); |
