public final class SQLiteDebug
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SQLiteDebug.DbStats
contains statistics about a database
|
static class |
SQLiteDebug.PagerStats
Contains statistics about the active pagers in the current process.
|
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG_ACTIVE_CURSOR_FINALIZATION
Controls the stack trace reporting of active cursors being
finalized.
|
static boolean |
DEBUG_LOCK_TIME_TRACKING
Controls the tracking of time spent holding the database lock.
|
static boolean |
DEBUG_LOCK_TIME_TRACKING_STACK_TRACE
Controls the printing of stack traces when tracking the time spent holding the database lock.
|
static boolean |
DEBUG_SQL_CACHE
Controls the printing of compiled-sql-statement cache stats.
|
static boolean |
DEBUG_SQL_STATEMENTS
Controls the printing of SQL statements as they are executed.
|
static boolean |
DEBUG_SQL_TIME
Controls the printing of wall-clock time taken to execute SQL statements
as they are executed.
|
Constructor and Description |
---|
SQLiteDebug() |
Modifier and Type | Method and Description |
---|---|
static SQLiteDebug.PagerStats |
getDatabaseInfo()
return all pager and database stats for the current process.
|
static long |
getHeapAllocatedSize()
Returns the amount of allocated memory in the SQLite heap.
|
static void |
getHeapDirtyPages(int[] pages)
Determines the number of dirty belonging to the SQLite
heap segments of this process.
|
static long |
getHeapFreeSize()
Returns the amount of free memory in the SQLite heap.
|
static long |
getHeapSize()
Returns the size of the SQLite heap.
|
static int |
getNumActiveCursorsFinalized()
Returns the number of active cursors that have been finalized.
|
static void |
getPagerStats(SQLiteDebug.PagerStats stats)
Gathers statistics about all pagers in the current process.
|
public static final boolean DEBUG_SQL_STATEMENTS
public static final boolean DEBUG_SQL_TIME
public static final boolean DEBUG_SQL_CACHE
public static final boolean DEBUG_ACTIVE_CURSOR_FINALIZATION
public static final boolean DEBUG_LOCK_TIME_TRACKING
public static final boolean DEBUG_LOCK_TIME_TRACKING_STACK_TRACE
public static SQLiteDebug.PagerStats getDatabaseInfo()
SQLiteDebug.PagerStats
public static void getPagerStats(SQLiteDebug.PagerStats stats)
public static long getHeapSize()
public static long getHeapAllocatedSize()
public static long getHeapFreeSize()
public static void getHeapDirtyPages(int[] pages)
public static int getNumActiveCursorsFinalized()