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

Commit c4e1bf72 authored by Andy McFadden's avatar Andy McFadden
Browse files

Add class init stats to alloc counters (API change).

Add calls to retrieve class initialization stats via the allocation
count mechanism.

For bug 2461549.
parent 6c0df0b4
Loading
Loading
Loading
Loading
+90 −2
Original line number Diff line number Diff line
@@ -113183,6 +113183,28 @@
 visibility="public"
>
</method>
<method name="getGlobalClassInitCount"
 return="int"
 abstract="false"
 native="false"
 synchronized="false"
 static="true"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="getGlobalClassInitTime"
 return="int"
 abstract="false"
 native="false"
 synchronized="false"
 static="true"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="getGlobalExternalAllocCount"
 return="int"
 abstract="false"
@@ -113429,6 +113451,28 @@
 visibility="public"
>
</method>
<method name="resetGlobalClassInitCount"
 return="void"
 abstract="false"
 native="false"
 synchronized="false"
 static="true"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="resetGlobalClassInitTime"
 return="void"
 abstract="false"
 native="false"
 synchronized="false"
 static="true"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="resetGlobalExternalAllocCount"
 return="void"
 abstract="false"
@@ -215718,7 +215762,7 @@
 synchronized="false"
 static="true"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</method>
@@ -215908,7 +215952,7 @@
 value="&quot;/sdcard/dmtrace.trace&quot;"
 static="true"
 final="true"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</field>
@@ -215945,6 +215989,28 @@
 visibility="public"
>
</field>
<field name="KIND_GLOBAL_CLASS_INIT_COUNT"
 type="int"
 transient="false"
 volatile="false"
 value="32"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="KIND_GLOBAL_CLASS_INIT_TIME"
 type="int"
 transient="false"
 volatile="false"
 value="64"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="KIND_GLOBAL_EXT_ALLOCATED_BYTES"
 type="int"
 transient="false"
@@ -216044,6 +216110,28 @@
 visibility="public"
>
</field>
<field name="KIND_THREAD_CLASS_INIT_COUNT"
 type="int"
 transient="false"
 volatile="false"
 value="2097152"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="KIND_THREAD_CLASS_INIT_TIME"
 type="int"
 transient="false"
 volatile="false"
 value="4194304"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="KIND_THREAD_EXT_ALLOCATED_BYTES"
 type="int"
 transient="false"
+14 −0
Original line number Diff line number Diff line
@@ -541,6 +541,14 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo
    public static int getGlobalFreedSize() {
        return VMDebug.getAllocCount(VMDebug.KIND_GLOBAL_FREED_BYTES);
    }
    public static int getGlobalClassInitCount() {
        /* number of classes that have been successfully initialized */
        return VMDebug.getAllocCount(VMDebug.KIND_GLOBAL_CLASS_INIT_COUNT);
    }
    public static int getGlobalClassInitTime() {
        /* cumulative elapsed time for class initialization, in usec */
        return VMDebug.getAllocCount(VMDebug.KIND_GLOBAL_CLASS_INIT_TIME);
    }
    public static int getGlobalExternalAllocCount() {
        return VMDebug.getAllocCount(VMDebug.KIND_GLOBAL_EXT_ALLOCATED_OBJECTS);
    }
@@ -584,6 +592,12 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo
    public static void resetGlobalFreedSize() {
        VMDebug.resetAllocCount(VMDebug.KIND_GLOBAL_FREED_BYTES);
    }
    public static void resetGlobalClassInitCount() {
        VMDebug.resetAllocCount(VMDebug.KIND_GLOBAL_CLASS_INIT_COUNT);
    }
    public static void resetGlobalClassInitTime() {
        VMDebug.resetAllocCount(VMDebug.KIND_GLOBAL_CLASS_INIT_TIME);
    }
    public static void resetGlobalExternalAllocCount() {
        VMDebug.resetAllocCount(VMDebug.KIND_GLOBAL_EXT_ALLOCATED_OBJECTS);
    }