Loading api/current.txt +24 −24 Original line number Diff line number Diff line Loading @@ -4464,10 +4464,10 @@ package android.app { method public void setInTouchMode(boolean); method public void start(); method public android.app.Activity startActivitySync(android.content.Intent); method public void startAllocCounting(); method public deprecated void startAllocCounting(); method public void startPerformanceSnapshot(); method public void startProfiling(); method public void stopAllocCounting(); method public deprecated void stopAllocCounting(); method public void stopProfiling(); method public void waitForIdle(java.lang.Runnable); method public void waitForIdleSync(); Loading Loading @@ -22041,47 +22041,47 @@ package android.os { method public static final int getBinderProxyObjectCount(); method public static int getBinderReceivedTransactions(); method public static int getBinderSentTransactions(); method public static int getGlobalAllocCount(); method public static int getGlobalAllocSize(); method public static int getGlobalClassInitCount(); method public static int getGlobalClassInitTime(); method public static deprecated int getGlobalAllocCount(); method public static deprecated int getGlobalAllocSize(); method public static deprecated int getGlobalClassInitCount(); method public static deprecated int getGlobalClassInitTime(); method public static deprecated int getGlobalExternalAllocCount(); method public static deprecated int getGlobalExternalAllocSize(); method public static deprecated int getGlobalExternalFreedCount(); method public static deprecated int getGlobalExternalFreedSize(); method public static int getGlobalFreedCount(); method public static int getGlobalFreedSize(); method public static int getGlobalGcInvocationCount(); method public static deprecated int getGlobalFreedCount(); method public static deprecated int getGlobalFreedSize(); method public static deprecated int getGlobalGcInvocationCount(); method public static int getLoadedClassCount(); method public static void getMemoryInfo(android.os.Debug.MemoryInfo); method public static long getNativeHeapAllocatedSize(); method public static long getNativeHeapFreeSize(); method public static long getNativeHeapSize(); method public static long getPss(); method public static int getThreadAllocCount(); method public static int getThreadAllocSize(); method public static deprecated int getThreadAllocCount(); method public static deprecated int getThreadAllocSize(); method public static deprecated int getThreadExternalAllocCount(); method public static deprecated int getThreadExternalAllocSize(); method public static int getThreadGcInvocationCount(); method public static deprecated int getThreadGcInvocationCount(); method public static boolean isDebuggerConnected(); method public static void printLoadedClasses(int); method public static void resetAllCounts(); method public static void resetGlobalAllocCount(); method public static void resetGlobalAllocSize(); method public static void resetGlobalClassInitCount(); method public static void resetGlobalClassInitTime(); method public static deprecated void resetAllCounts(); method public static deprecated void resetGlobalAllocCount(); method public static deprecated void resetGlobalAllocSize(); method public static deprecated void resetGlobalClassInitCount(); method public static deprecated void resetGlobalClassInitTime(); method public static deprecated void resetGlobalExternalAllocCount(); method public static deprecated void resetGlobalExternalAllocSize(); method public static deprecated void resetGlobalExternalFreedCount(); method public static deprecated void resetGlobalExternalFreedSize(); method public static void resetGlobalFreedCount(); method public static void resetGlobalFreedSize(); method public static void resetGlobalGcInvocationCount(); method public static void resetThreadAllocCount(); method public static void resetThreadAllocSize(); method public static deprecated void resetGlobalFreedCount(); method public static deprecated void resetGlobalFreedSize(); method public static deprecated void resetGlobalGcInvocationCount(); method public static deprecated void resetThreadAllocCount(); method public static deprecated void resetThreadAllocSize(); method public static deprecated void resetThreadExternalAllocCount(); method public static deprecated void resetThreadExternalAllocSize(); method public static void resetThreadGcInvocationCount(); method public static deprecated void resetThreadGcInvocationCount(); method public static deprecated int setAllocationLimit(int); method public static deprecated int setGlobalAllocationLimit(int); method public static deprecated void startAllocCounting(); Loading @@ -22100,7 +22100,7 @@ package android.os { field public static final int SHOW_CLASSLOADER = 2; // 0x2 field public static final int SHOW_FULL_DETAIL = 1; // 0x1 field public static final int SHOW_INITIALIZED = 4; // 0x4 field public static final int TRACE_COUNT_ALLOCS = 1; // 0x1 field public static final deprecated int TRACE_COUNT_ALLOCS = 1; // 0x1 } public static deprecated class Debug.InstructionCount { api/system-current.txt +24 −24 Original line number Diff line number Diff line Loading @@ -4554,10 +4554,10 @@ package android.app { method public void setInTouchMode(boolean); method public void start(); method public android.app.Activity startActivitySync(android.content.Intent); method public void startAllocCounting(); method public deprecated void startAllocCounting(); method public void startPerformanceSnapshot(); method public void startProfiling(); method public void stopAllocCounting(); method public deprecated void stopAllocCounting(); method public void stopProfiling(); method public void waitForIdle(java.lang.Runnable); method public void waitForIdleSync(); Loading Loading @@ -23631,47 +23631,47 @@ package android.os { method public static final int getBinderProxyObjectCount(); method public static int getBinderReceivedTransactions(); method public static int getBinderSentTransactions(); method public static int getGlobalAllocCount(); method public static int getGlobalAllocSize(); method public static int getGlobalClassInitCount(); method public static int getGlobalClassInitTime(); method public static deprecated int getGlobalAllocCount(); method public static deprecated int getGlobalAllocSize(); method public static deprecated int getGlobalClassInitCount(); method public static deprecated int getGlobalClassInitTime(); method public static deprecated int getGlobalExternalAllocCount(); method public static deprecated int getGlobalExternalAllocSize(); method public static deprecated int getGlobalExternalFreedCount(); method public static deprecated int getGlobalExternalFreedSize(); method public static int getGlobalFreedCount(); method public static int getGlobalFreedSize(); method public static int getGlobalGcInvocationCount(); method public static deprecated int getGlobalFreedCount(); method public static deprecated int getGlobalFreedSize(); method public static deprecated int getGlobalGcInvocationCount(); method public static int getLoadedClassCount(); method public static void getMemoryInfo(android.os.Debug.MemoryInfo); method public static long getNativeHeapAllocatedSize(); method public static long getNativeHeapFreeSize(); method public static long getNativeHeapSize(); method public static long getPss(); method public static int getThreadAllocCount(); method public static int getThreadAllocSize(); method public static deprecated int getThreadAllocCount(); method public static deprecated int getThreadAllocSize(); method public static deprecated int getThreadExternalAllocCount(); method public static deprecated int getThreadExternalAllocSize(); method public static int getThreadGcInvocationCount(); method public static deprecated int getThreadGcInvocationCount(); method public static boolean isDebuggerConnected(); method public static void printLoadedClasses(int); method public static void resetAllCounts(); method public static void resetGlobalAllocCount(); method public static void resetGlobalAllocSize(); method public static void resetGlobalClassInitCount(); method public static void resetGlobalClassInitTime(); method public static deprecated void resetAllCounts(); method public static deprecated void resetGlobalAllocCount(); method public static deprecated void resetGlobalAllocSize(); method public static deprecated void resetGlobalClassInitCount(); method public static deprecated void resetGlobalClassInitTime(); method public static deprecated void resetGlobalExternalAllocCount(); method public static deprecated void resetGlobalExternalAllocSize(); method public static deprecated void resetGlobalExternalFreedCount(); method public static deprecated void resetGlobalExternalFreedSize(); method public static void resetGlobalFreedCount(); method public static void resetGlobalFreedSize(); method public static void resetGlobalGcInvocationCount(); method public static void resetThreadAllocCount(); method public static void resetThreadAllocSize(); method public static deprecated void resetGlobalFreedCount(); method public static deprecated void resetGlobalFreedSize(); method public static deprecated void resetGlobalGcInvocationCount(); method public static deprecated void resetThreadAllocCount(); method public static deprecated void resetThreadAllocSize(); method public static deprecated void resetThreadExternalAllocCount(); method public static deprecated void resetThreadExternalAllocSize(); method public static void resetThreadGcInvocationCount(); method public static deprecated void resetThreadGcInvocationCount(); method public static deprecated int setAllocationLimit(int); method public static deprecated int setGlobalAllocationLimit(int); method public static deprecated void startAllocCounting(); Loading @@ -23690,7 +23690,7 @@ package android.os { field public static final int SHOW_CLASSLOADER = 2; // 0x2 field public static final int SHOW_FULL_DETAIL = 1; // 0x1 field public static final int SHOW_INITIALIZED = 4; // 0x4 field public static final int TRACE_COUNT_ALLOCS = 1; // 0x1 field public static final deprecated int TRACE_COUNT_ALLOCS = 1; // 0x1 } public static deprecated class Debug.InstructionCount { core/java/android/app/Instrumentation.java +6 −0 Original line number Diff line number Diff line Loading @@ -1322,7 +1322,10 @@ public class Instrumentation { /* * Starts allocation counting. This triggers a gc and resets the counts. * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public void startAllocCounting() { // Before we start trigger a GC and reset the debug counts. Run the // finalizers and another GC before starting and stopping the alloc Loading @@ -1340,7 +1343,10 @@ public class Instrumentation { /* * Stops allocation counting. * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public void stopAllocCounting() { Runtime.getRuntime().gc(); Runtime.getRuntime().runFinalization(); Loading core/java/android/os/Debug.java +67 −1 Original line number Diff line number Diff line Loading @@ -63,7 +63,10 @@ public final class Debug * * TRACE_COUNT_ALLOCS adds the results from startAllocCounting to the * trace key file. * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static final int TRACE_COUNT_ALLOCS = VMDebug.TRACE_COUNT_ALLOCS; /** Loading Loading @@ -760,7 +763,7 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Stop counting the number and aggregate size of memory allocations. * * @see #startAllocCounting() * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static void stopAllocCounting() { Loading @@ -770,7 +773,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Returns the global count of objects allocated by the runtime between a * {@link #startAllocCounting() start} and {@link #stopAllocCounting() stop}. * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static int getGlobalAllocCount() { return VMDebug.getAllocCount(VMDebug.KIND_GLOBAL_ALLOCATED_OBJECTS); } Loading @@ -778,7 +784,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Clears the global count of objects allocated. * @see #getGlobalAllocCount() * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static void resetGlobalAllocCount() { VMDebug.resetAllocCount(VMDebug.KIND_GLOBAL_ALLOCATED_OBJECTS); } Loading @@ -786,7 +795,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Returns the global size, in bytes, of objects allocated by the runtime between a * {@link #startAllocCounting() start} and {@link #stopAllocCounting() stop}. * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static int getGlobalAllocSize() { return VMDebug.getAllocCount(VMDebug.KIND_GLOBAL_ALLOCATED_BYTES); } Loading @@ -794,7 +806,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Clears the global size of objects allocated. * @see #getGlobalAllocSize() * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static void resetGlobalAllocSize() { VMDebug.resetAllocCount(VMDebug.KIND_GLOBAL_ALLOCATED_BYTES); } Loading @@ -802,7 +817,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Returns the global count of objects freed by the runtime between a * {@link #startAllocCounting() start} and {@link #stopAllocCounting() stop}. * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static int getGlobalFreedCount() { return VMDebug.getAllocCount(VMDebug.KIND_GLOBAL_FREED_OBJECTS); } Loading @@ -810,7 +828,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Clears the global count of objects freed. * @see #getGlobalFreedCount() * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static void resetGlobalFreedCount() { VMDebug.resetAllocCount(VMDebug.KIND_GLOBAL_FREED_OBJECTS); } Loading @@ -818,7 +839,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Returns the global size, in bytes, of objects freed by the runtime between a * {@link #startAllocCounting() start} and {@link #stopAllocCounting() stop}. * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static int getGlobalFreedSize() { return VMDebug.getAllocCount(VMDebug.KIND_GLOBAL_FREED_BYTES); } Loading @@ -826,7 +850,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Clears the global size of objects freed. * @see #getGlobalFreedSize() * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static void resetGlobalFreedSize() { VMDebug.resetAllocCount(VMDebug.KIND_GLOBAL_FREED_BYTES); } Loading @@ -834,7 +861,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Returns the number of non-concurrent GC invocations between a * {@link #startAllocCounting() start} and {@link #stopAllocCounting() stop}. * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static int getGlobalGcInvocationCount() { return VMDebug.getAllocCount(VMDebug.KIND_GLOBAL_GC_INVOCATIONS); } Loading @@ -842,7 +872,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Clears the count of non-concurrent GC invocations. * @see #getGlobalGcInvocationCount() * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static void resetGlobalGcInvocationCount() { VMDebug.resetAllocCount(VMDebug.KIND_GLOBAL_GC_INVOCATIONS); } Loading @@ -851,7 +884,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo * Returns the number of classes successfully initialized (ie those that executed without * throwing an exception) between a {@link #startAllocCounting() start} and * {@link #stopAllocCounting() stop}. * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static int getGlobalClassInitCount() { return VMDebug.getAllocCount(VMDebug.KIND_GLOBAL_CLASS_INIT_COUNT); } Loading @@ -859,7 +895,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Clears the count of classes initialized. * @see #getGlobalClassInitCount() * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static void resetGlobalClassInitCount() { VMDebug.resetAllocCount(VMDebug.KIND_GLOBAL_CLASS_INIT_COUNT); } Loading @@ -867,7 +906,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Returns the time spent successfully initializing classes between a * {@link #startAllocCounting() start} and {@link #stopAllocCounting() stop}. * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static int getGlobalClassInitTime() { /* cumulative elapsed time for class initialization, in usec */ return VMDebug.getAllocCount(VMDebug.KIND_GLOBAL_CLASS_INIT_TIME); Loading @@ -876,7 +918,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Clears the count of time spent initializing classes. * @see #getGlobalClassInitTime() * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static void resetGlobalClassInitTime() { VMDebug.resetAllocCount(VMDebug.KIND_GLOBAL_CLASS_INIT_TIME); } Loading Loading @@ -948,7 +993,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Returns the thread-local count of objects allocated by the runtime between a * {@link #startAllocCounting() start} and {@link #stopAllocCounting() stop}. * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static int getThreadAllocCount() { return VMDebug.getAllocCount(VMDebug.KIND_THREAD_ALLOCATED_OBJECTS); } Loading @@ -956,7 +1004,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Clears the thread-local count of objects allocated. * @see #getThreadAllocCount() * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static void resetThreadAllocCount() { VMDebug.resetAllocCount(VMDebug.KIND_THREAD_ALLOCATED_OBJECTS); } Loading @@ -965,7 +1016,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo * Returns the thread-local size of objects allocated by the runtime between a * {@link #startAllocCounting() start} and {@link #stopAllocCounting() stop}. * @return The allocated size in bytes. * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static int getThreadAllocSize() { return VMDebug.getAllocCount(VMDebug.KIND_THREAD_ALLOCATED_BYTES); } Loading @@ -973,7 +1027,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Clears the thread-local count of objects allocated. * @see #getThreadAllocSize() * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static void resetThreadAllocSize() { VMDebug.resetAllocCount(VMDebug.KIND_THREAD_ALLOCATED_BYTES); } Loading Loading @@ -1013,7 +1070,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Returns the number of thread-local non-concurrent GC invocations between a * {@link #startAllocCounting() start} and {@link #stopAllocCounting() stop}. * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static int getThreadGcInvocationCount() { return VMDebug.getAllocCount(VMDebug.KIND_THREAD_GC_INVOCATIONS); } Loading @@ -1021,7 +1081,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Clears the thread-local count of non-concurrent GC invocations. * @see #getThreadGcInvocationCount() * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static void resetThreadGcInvocationCount() { VMDebug.resetAllocCount(VMDebug.KIND_THREAD_GC_INVOCATIONS); } Loading @@ -1029,7 +1092,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Clears all the global and thread-local memory allocation counters. * @see #startAllocCounting() * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static void resetAllCounts() { VMDebug.resetAllocCount(VMDebug.KIND_ALL_COUNTS); } Loading Loading
api/current.txt +24 −24 Original line number Diff line number Diff line Loading @@ -4464,10 +4464,10 @@ package android.app { method public void setInTouchMode(boolean); method public void start(); method public android.app.Activity startActivitySync(android.content.Intent); method public void startAllocCounting(); method public deprecated void startAllocCounting(); method public void startPerformanceSnapshot(); method public void startProfiling(); method public void stopAllocCounting(); method public deprecated void stopAllocCounting(); method public void stopProfiling(); method public void waitForIdle(java.lang.Runnable); method public void waitForIdleSync(); Loading Loading @@ -22041,47 +22041,47 @@ package android.os { method public static final int getBinderProxyObjectCount(); method public static int getBinderReceivedTransactions(); method public static int getBinderSentTransactions(); method public static int getGlobalAllocCount(); method public static int getGlobalAllocSize(); method public static int getGlobalClassInitCount(); method public static int getGlobalClassInitTime(); method public static deprecated int getGlobalAllocCount(); method public static deprecated int getGlobalAllocSize(); method public static deprecated int getGlobalClassInitCount(); method public static deprecated int getGlobalClassInitTime(); method public static deprecated int getGlobalExternalAllocCount(); method public static deprecated int getGlobalExternalAllocSize(); method public static deprecated int getGlobalExternalFreedCount(); method public static deprecated int getGlobalExternalFreedSize(); method public static int getGlobalFreedCount(); method public static int getGlobalFreedSize(); method public static int getGlobalGcInvocationCount(); method public static deprecated int getGlobalFreedCount(); method public static deprecated int getGlobalFreedSize(); method public static deprecated int getGlobalGcInvocationCount(); method public static int getLoadedClassCount(); method public static void getMemoryInfo(android.os.Debug.MemoryInfo); method public static long getNativeHeapAllocatedSize(); method public static long getNativeHeapFreeSize(); method public static long getNativeHeapSize(); method public static long getPss(); method public static int getThreadAllocCount(); method public static int getThreadAllocSize(); method public static deprecated int getThreadAllocCount(); method public static deprecated int getThreadAllocSize(); method public static deprecated int getThreadExternalAllocCount(); method public static deprecated int getThreadExternalAllocSize(); method public static int getThreadGcInvocationCount(); method public static deprecated int getThreadGcInvocationCount(); method public static boolean isDebuggerConnected(); method public static void printLoadedClasses(int); method public static void resetAllCounts(); method public static void resetGlobalAllocCount(); method public static void resetGlobalAllocSize(); method public static void resetGlobalClassInitCount(); method public static void resetGlobalClassInitTime(); method public static deprecated void resetAllCounts(); method public static deprecated void resetGlobalAllocCount(); method public static deprecated void resetGlobalAllocSize(); method public static deprecated void resetGlobalClassInitCount(); method public static deprecated void resetGlobalClassInitTime(); method public static deprecated void resetGlobalExternalAllocCount(); method public static deprecated void resetGlobalExternalAllocSize(); method public static deprecated void resetGlobalExternalFreedCount(); method public static deprecated void resetGlobalExternalFreedSize(); method public static void resetGlobalFreedCount(); method public static void resetGlobalFreedSize(); method public static void resetGlobalGcInvocationCount(); method public static void resetThreadAllocCount(); method public static void resetThreadAllocSize(); method public static deprecated void resetGlobalFreedCount(); method public static deprecated void resetGlobalFreedSize(); method public static deprecated void resetGlobalGcInvocationCount(); method public static deprecated void resetThreadAllocCount(); method public static deprecated void resetThreadAllocSize(); method public static deprecated void resetThreadExternalAllocCount(); method public static deprecated void resetThreadExternalAllocSize(); method public static void resetThreadGcInvocationCount(); method public static deprecated void resetThreadGcInvocationCount(); method public static deprecated int setAllocationLimit(int); method public static deprecated int setGlobalAllocationLimit(int); method public static deprecated void startAllocCounting(); Loading @@ -22100,7 +22100,7 @@ package android.os { field public static final int SHOW_CLASSLOADER = 2; // 0x2 field public static final int SHOW_FULL_DETAIL = 1; // 0x1 field public static final int SHOW_INITIALIZED = 4; // 0x4 field public static final int TRACE_COUNT_ALLOCS = 1; // 0x1 field public static final deprecated int TRACE_COUNT_ALLOCS = 1; // 0x1 } public static deprecated class Debug.InstructionCount {
api/system-current.txt +24 −24 Original line number Diff line number Diff line Loading @@ -4554,10 +4554,10 @@ package android.app { method public void setInTouchMode(boolean); method public void start(); method public android.app.Activity startActivitySync(android.content.Intent); method public void startAllocCounting(); method public deprecated void startAllocCounting(); method public void startPerformanceSnapshot(); method public void startProfiling(); method public void stopAllocCounting(); method public deprecated void stopAllocCounting(); method public void stopProfiling(); method public void waitForIdle(java.lang.Runnable); method public void waitForIdleSync(); Loading Loading @@ -23631,47 +23631,47 @@ package android.os { method public static final int getBinderProxyObjectCount(); method public static int getBinderReceivedTransactions(); method public static int getBinderSentTransactions(); method public static int getGlobalAllocCount(); method public static int getGlobalAllocSize(); method public static int getGlobalClassInitCount(); method public static int getGlobalClassInitTime(); method public static deprecated int getGlobalAllocCount(); method public static deprecated int getGlobalAllocSize(); method public static deprecated int getGlobalClassInitCount(); method public static deprecated int getGlobalClassInitTime(); method public static deprecated int getGlobalExternalAllocCount(); method public static deprecated int getGlobalExternalAllocSize(); method public static deprecated int getGlobalExternalFreedCount(); method public static deprecated int getGlobalExternalFreedSize(); method public static int getGlobalFreedCount(); method public static int getGlobalFreedSize(); method public static int getGlobalGcInvocationCount(); method public static deprecated int getGlobalFreedCount(); method public static deprecated int getGlobalFreedSize(); method public static deprecated int getGlobalGcInvocationCount(); method public static int getLoadedClassCount(); method public static void getMemoryInfo(android.os.Debug.MemoryInfo); method public static long getNativeHeapAllocatedSize(); method public static long getNativeHeapFreeSize(); method public static long getNativeHeapSize(); method public static long getPss(); method public static int getThreadAllocCount(); method public static int getThreadAllocSize(); method public static deprecated int getThreadAllocCount(); method public static deprecated int getThreadAllocSize(); method public static deprecated int getThreadExternalAllocCount(); method public static deprecated int getThreadExternalAllocSize(); method public static int getThreadGcInvocationCount(); method public static deprecated int getThreadGcInvocationCount(); method public static boolean isDebuggerConnected(); method public static void printLoadedClasses(int); method public static void resetAllCounts(); method public static void resetGlobalAllocCount(); method public static void resetGlobalAllocSize(); method public static void resetGlobalClassInitCount(); method public static void resetGlobalClassInitTime(); method public static deprecated void resetAllCounts(); method public static deprecated void resetGlobalAllocCount(); method public static deprecated void resetGlobalAllocSize(); method public static deprecated void resetGlobalClassInitCount(); method public static deprecated void resetGlobalClassInitTime(); method public static deprecated void resetGlobalExternalAllocCount(); method public static deprecated void resetGlobalExternalAllocSize(); method public static deprecated void resetGlobalExternalFreedCount(); method public static deprecated void resetGlobalExternalFreedSize(); method public static void resetGlobalFreedCount(); method public static void resetGlobalFreedSize(); method public static void resetGlobalGcInvocationCount(); method public static void resetThreadAllocCount(); method public static void resetThreadAllocSize(); method public static deprecated void resetGlobalFreedCount(); method public static deprecated void resetGlobalFreedSize(); method public static deprecated void resetGlobalGcInvocationCount(); method public static deprecated void resetThreadAllocCount(); method public static deprecated void resetThreadAllocSize(); method public static deprecated void resetThreadExternalAllocCount(); method public static deprecated void resetThreadExternalAllocSize(); method public static void resetThreadGcInvocationCount(); method public static deprecated void resetThreadGcInvocationCount(); method public static deprecated int setAllocationLimit(int); method public static deprecated int setGlobalAllocationLimit(int); method public static deprecated void startAllocCounting(); Loading @@ -23690,7 +23690,7 @@ package android.os { field public static final int SHOW_CLASSLOADER = 2; // 0x2 field public static final int SHOW_FULL_DETAIL = 1; // 0x1 field public static final int SHOW_INITIALIZED = 4; // 0x4 field public static final int TRACE_COUNT_ALLOCS = 1; // 0x1 field public static final deprecated int TRACE_COUNT_ALLOCS = 1; // 0x1 } public static deprecated class Debug.InstructionCount {
core/java/android/app/Instrumentation.java +6 −0 Original line number Diff line number Diff line Loading @@ -1322,7 +1322,10 @@ public class Instrumentation { /* * Starts allocation counting. This triggers a gc and resets the counts. * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public void startAllocCounting() { // Before we start trigger a GC and reset the debug counts. Run the // finalizers and another GC before starting and stopping the alloc Loading @@ -1340,7 +1343,10 @@ public class Instrumentation { /* * Stops allocation counting. * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public void stopAllocCounting() { Runtime.getRuntime().gc(); Runtime.getRuntime().runFinalization(); Loading
core/java/android/os/Debug.java +67 −1 Original line number Diff line number Diff line Loading @@ -63,7 +63,10 @@ public final class Debug * * TRACE_COUNT_ALLOCS adds the results from startAllocCounting to the * trace key file. * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static final int TRACE_COUNT_ALLOCS = VMDebug.TRACE_COUNT_ALLOCS; /** Loading Loading @@ -760,7 +763,7 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Stop counting the number and aggregate size of memory allocations. * * @see #startAllocCounting() * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static void stopAllocCounting() { Loading @@ -770,7 +773,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Returns the global count of objects allocated by the runtime between a * {@link #startAllocCounting() start} and {@link #stopAllocCounting() stop}. * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static int getGlobalAllocCount() { return VMDebug.getAllocCount(VMDebug.KIND_GLOBAL_ALLOCATED_OBJECTS); } Loading @@ -778,7 +784,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Clears the global count of objects allocated. * @see #getGlobalAllocCount() * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static void resetGlobalAllocCount() { VMDebug.resetAllocCount(VMDebug.KIND_GLOBAL_ALLOCATED_OBJECTS); } Loading @@ -786,7 +795,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Returns the global size, in bytes, of objects allocated by the runtime between a * {@link #startAllocCounting() start} and {@link #stopAllocCounting() stop}. * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static int getGlobalAllocSize() { return VMDebug.getAllocCount(VMDebug.KIND_GLOBAL_ALLOCATED_BYTES); } Loading @@ -794,7 +806,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Clears the global size of objects allocated. * @see #getGlobalAllocSize() * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static void resetGlobalAllocSize() { VMDebug.resetAllocCount(VMDebug.KIND_GLOBAL_ALLOCATED_BYTES); } Loading @@ -802,7 +817,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Returns the global count of objects freed by the runtime between a * {@link #startAllocCounting() start} and {@link #stopAllocCounting() stop}. * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static int getGlobalFreedCount() { return VMDebug.getAllocCount(VMDebug.KIND_GLOBAL_FREED_OBJECTS); } Loading @@ -810,7 +828,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Clears the global count of objects freed. * @see #getGlobalFreedCount() * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static void resetGlobalFreedCount() { VMDebug.resetAllocCount(VMDebug.KIND_GLOBAL_FREED_OBJECTS); } Loading @@ -818,7 +839,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Returns the global size, in bytes, of objects freed by the runtime between a * {@link #startAllocCounting() start} and {@link #stopAllocCounting() stop}. * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static int getGlobalFreedSize() { return VMDebug.getAllocCount(VMDebug.KIND_GLOBAL_FREED_BYTES); } Loading @@ -826,7 +850,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Clears the global size of objects freed. * @see #getGlobalFreedSize() * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static void resetGlobalFreedSize() { VMDebug.resetAllocCount(VMDebug.KIND_GLOBAL_FREED_BYTES); } Loading @@ -834,7 +861,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Returns the number of non-concurrent GC invocations between a * {@link #startAllocCounting() start} and {@link #stopAllocCounting() stop}. * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static int getGlobalGcInvocationCount() { return VMDebug.getAllocCount(VMDebug.KIND_GLOBAL_GC_INVOCATIONS); } Loading @@ -842,7 +872,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Clears the count of non-concurrent GC invocations. * @see #getGlobalGcInvocationCount() * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static void resetGlobalGcInvocationCount() { VMDebug.resetAllocCount(VMDebug.KIND_GLOBAL_GC_INVOCATIONS); } Loading @@ -851,7 +884,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo * Returns the number of classes successfully initialized (ie those that executed without * throwing an exception) between a {@link #startAllocCounting() start} and * {@link #stopAllocCounting() stop}. * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static int getGlobalClassInitCount() { return VMDebug.getAllocCount(VMDebug.KIND_GLOBAL_CLASS_INIT_COUNT); } Loading @@ -859,7 +895,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Clears the count of classes initialized. * @see #getGlobalClassInitCount() * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static void resetGlobalClassInitCount() { VMDebug.resetAllocCount(VMDebug.KIND_GLOBAL_CLASS_INIT_COUNT); } Loading @@ -867,7 +906,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Returns the time spent successfully initializing classes between a * {@link #startAllocCounting() start} and {@link #stopAllocCounting() stop}. * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static int getGlobalClassInitTime() { /* cumulative elapsed time for class initialization, in usec */ return VMDebug.getAllocCount(VMDebug.KIND_GLOBAL_CLASS_INIT_TIME); Loading @@ -876,7 +918,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Clears the count of time spent initializing classes. * @see #getGlobalClassInitTime() * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static void resetGlobalClassInitTime() { VMDebug.resetAllocCount(VMDebug.KIND_GLOBAL_CLASS_INIT_TIME); } Loading Loading @@ -948,7 +993,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Returns the thread-local count of objects allocated by the runtime between a * {@link #startAllocCounting() start} and {@link #stopAllocCounting() stop}. * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static int getThreadAllocCount() { return VMDebug.getAllocCount(VMDebug.KIND_THREAD_ALLOCATED_OBJECTS); } Loading @@ -956,7 +1004,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Clears the thread-local count of objects allocated. * @see #getThreadAllocCount() * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static void resetThreadAllocCount() { VMDebug.resetAllocCount(VMDebug.KIND_THREAD_ALLOCATED_OBJECTS); } Loading @@ -965,7 +1016,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo * Returns the thread-local size of objects allocated by the runtime between a * {@link #startAllocCounting() start} and {@link #stopAllocCounting() stop}. * @return The allocated size in bytes. * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static int getThreadAllocSize() { return VMDebug.getAllocCount(VMDebug.KIND_THREAD_ALLOCATED_BYTES); } Loading @@ -973,7 +1027,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Clears the thread-local count of objects allocated. * @see #getThreadAllocSize() * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static void resetThreadAllocSize() { VMDebug.resetAllocCount(VMDebug.KIND_THREAD_ALLOCATED_BYTES); } Loading Loading @@ -1013,7 +1070,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Returns the number of thread-local non-concurrent GC invocations between a * {@link #startAllocCounting() start} and {@link #stopAllocCounting() stop}. * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static int getThreadGcInvocationCount() { return VMDebug.getAllocCount(VMDebug.KIND_THREAD_GC_INVOCATIONS); } Loading @@ -1021,7 +1081,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Clears the thread-local count of non-concurrent GC invocations. * @see #getThreadGcInvocationCount() * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static void resetThreadGcInvocationCount() { VMDebug.resetAllocCount(VMDebug.KIND_THREAD_GC_INVOCATIONS); } Loading @@ -1029,7 +1092,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Clears all the global and thread-local memory allocation counters. * @see #startAllocCounting() * * @deprecated Accurate counting is a burden on the runtime and may be removed. */ @Deprecated public static void resetAllCounts() { VMDebug.resetAllocCount(VMDebug.KIND_ALL_COUNTS); } Loading