From 50f65404fba47225316cb24e53a8e0a3de340fe0 Mon Sep 17 00:00:00 2001 From: Hiroshi Yamauchi Date: Tue, 14 Apr 2015 15:20:25 -0700 Subject: [PATCH] Unhide Debug.getRuntimeStat(). Export runtime stats (currently GC stats) through this method. Bug: 19825248 Change-Id: I8f859a2bc497e604f4c4f23f6b45b49ac4f99790 --- api/current.txt | 2 ++ api/system-current.txt | 2 ++ core/java/android/os/Debug.java | 2 -- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/api/current.txt b/api/current.txt index 5f4336d19a0bc..8c325bad4d34f 100644 --- a/api/current.txt +++ b/api/current.txt @@ -22706,6 +22706,8 @@ package android.os { method public static long getNativeHeapFreeSize(); method public static long getNativeHeapSize(); method public static long getPss(); + method public static java.lang.String getRuntimeStat(java.lang.String); + method public static java.util.Map getRuntimeStats(); method public static deprecated int getThreadAllocCount(); method public static deprecated int getThreadAllocSize(); method public static deprecated int getThreadExternalAllocCount(); diff --git a/api/system-current.txt b/api/system-current.txt index 684ef80d5232a..0da6d27b9085b 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -24590,6 +24590,8 @@ package android.os { method public static long getNativeHeapFreeSize(); method public static long getNativeHeapSize(); method public static long getPss(); + method public static java.lang.String getRuntimeStat(java.lang.String); + method public static java.util.Map getRuntimeStats(); method public static deprecated int getThreadAllocCount(); method public static deprecated int getThreadAllocSize(); method public static deprecated int getThreadExternalAllocCount(); diff --git a/core/java/android/os/Debug.java b/core/java/android/os/Debug.java index 75b1101174579..4aff7a1835a76 100644 --- a/core/java/android/os/Debug.java +++ b/core/java/android/os/Debug.java @@ -1173,7 +1173,6 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo * the name of the runtime statistic to look up. * @return the value of the specified runtime statistic or {@code null} if the * runtime statistic doesn't exist. - * @hide */ public static String getRuntimeStat(String statName) { return VMDebug.getRuntimeStat(statName); @@ -1184,7 +1183,6 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo * that {@link #getRuntimeStat(String)} supports. * * @return a map of the names/values of the supported runtime statistics. - * @hide */ public static Map getRuntimeStats() { return VMDebug.getRuntimeStats();