Fields Summary |
---|
public static final boolean | DEBUG_SQL_STATEMENTSControls the printing of SQL statements as they are executed. |
public static final boolean | DEBUG_ACTIVE_CURSOR_FINALIZATIONControls the stack trace reporting of active cursors being
finalized. |
public static final boolean | DEBUG_LOCK_TIME_TRACKINGControls the tracking of time spent holding the database lock. |
public static final boolean | DEBUG_LOCK_TIME_TRACKING_STACK_TRACEControls the printing of stack traces when tracking the time spent holding the database lock. |
private static int | sNumActiveCursorsFinalized |
Methods Summary |
---|
public static native long | getHeapAllocatedSize()Returns the amount of allocated memory in the SQLite heap.
|
public static native void | getHeapDirtyPages(int[] pages)Determines the number of dirty belonging to the SQLite
heap segments of this process. pages[0] returns the number of
shared pages, pages[1] returns the number of private pages
|
public static native long | getHeapFreeSize()Returns the amount of free memory in the SQLite heap.
|
public static native long | getHeapSize()Returns the size of the SQLite heap.
|
public static int | getNumActiveCursorsFinalized()Returns the number of active cursors that have been finalized. This depends on the GC having
run but is still useful for tests.
return sNumActiveCursorsFinalized;
|
public static native void | getPagerStats(android.database.sqlite.SQLiteDebug$PagerStats stats)Gathers statistics about all pagers in the current process.
|
static synchronized void | notifyActiveCursorFinalized()
sNumActiveCursorsFinalized++;
|