Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50f65404 authored by Hiroshi Yamauchi's avatar Hiroshi Yamauchi
Browse files

Unhide Debug.getRuntimeStat().

Export runtime stats (currently GC stats) through this method.

Bug: 19825248
Change-Id: I8f859a2bc497e604f4c4f23f6b45b49ac4f99790
parent c9694247
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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<java.lang.String, java.lang.String> getRuntimeStats();
    method public static deprecated int getThreadAllocCount();
    method public static deprecated int getThreadAllocSize();
    method public static deprecated int getThreadExternalAllocCount();
+2 −0
Original line number Diff line number Diff line
@@ -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<java.lang.String, java.lang.String> getRuntimeStats();
    method public static deprecated int getThreadAllocCount();
    method public static deprecated int getThreadAllocSize();
    method public static deprecated int getThreadExternalAllocCount();
+0 −2
Original line number Diff line number Diff line
@@ -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<String, String> getRuntimeStats() {
        return VMDebug.getRuntimeStats();