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_LOG_SLOW_QUERIES
True to enable database performance testing instrumentation.
|
static boolean |
DEBUG_SQL_LOG
Controls the printing of informational SQL log messages.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
dump(android.util.Printer printer,
java.lang.String[] args)
Dumps detailed information about all databases used by the process.
|
static SQLiteDebug.PagerStats |
getDatabaseInfo()
return all pager and database stats for the current process.
|
static boolean |
shouldLogSlowQuery(long elapsedTimeMillis)
Determines whether a query should be logged.
|
public static final boolean DEBUG_SQL_LOG
public static final boolean DEBUG_SQL_STATEMENTS
public static final boolean DEBUG_SQL_TIME
public static final boolean DEBUG_LOG_SLOW_QUERIES
public static final boolean shouldLogSlowQuery(long elapsedTimeMillis)
public static SQLiteDebug.PagerStats getDatabaseInfo()
SQLiteDebug.PagerStatspublic static void dump(android.util.Printer printer,
java.lang.String[] args)
printer - The printer for dumping database state.args - Command-line arguments supplied to dumpsys dbinfo