diff options
| author | 2015-10-12 22:55:10 +0000 | |
|---|---|---|
| committer | 2015-10-12 22:55:10 +0000 | |
| commit | 34c120dc6142c861cb131c900cdee3c19f81ce51 (patch) | |
| tree | 08d45635bd5fd1f58095cb5197aeed9198d2b525 | |
| parent | bde2707f7cb8a5f97b3b077cd49bb034f1a359ff (diff) | |
| parent | b02ce291445069435fad621fe3d0ccce5609c22a (diff) | |
Merge ""Fix" issue #24357296: Debug.getMemoryInfo doesn't include EGL mtrack..." into mnc-dr-dev
| -rw-r--r-- | core/java/android/os/Debug.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/core/java/android/os/Debug.java b/core/java/android/os/Debug.java index 97b85e2531d0..fdd34f586e8c 100644 --- a/core/java/android/os/Debug.java +++ b/core/java/android/os/Debug.java @@ -471,7 +471,7 @@ public final class Debug * </tbody> * </table> */ - public String getMemoryStat(String statName) { + public String getMemoryStat(String statName) { switch(statName) { case "summary.java-heap": return Integer.toString(getSummaryJavaHeap()); @@ -1538,7 +1538,13 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Retrieves information about this processes memory usages. This information is broken down by - * how much is in use by dalivk, the native heap, and everything else. + * how much is in use by dalvik, the native heap, and everything else. + * + * <p><b>Note:</b> this method directly retrieves memory information for the give process + * from low-level data available to it. It may not be able to retrieve information about + * some protected allocations, such as graphics. If you want to be sure you can see + * all information about allocations by the process, use instead + * {@link android.app.ActivityManager#getProcessMemoryInfo(int[])}.</p> */ public static native void getMemoryInfo(MemoryInfo memoryInfo); |