Merge "Tests for lookaside configuration" into oc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
56bd583162
@@ -12032,6 +12032,31 @@ package android.database.sqlite {
|
||||
ctor public SQLiteDatatypeMismatchException(java.lang.String);
|
||||
}
|
||||
|
||||
public final class SQLiteDebug {
|
||||
method public static void dump(android.util.Printer, java.lang.String[]);
|
||||
method public static android.database.sqlite.SQLiteDebug.PagerStats getDatabaseInfo();
|
||||
field public static final boolean DEBUG_SQL_LOG;
|
||||
field public static final boolean DEBUG_SQL_STATEMENTS;
|
||||
field public static final boolean DEBUG_SQL_TIME;
|
||||
}
|
||||
|
||||
public static class SQLiteDebug.DbStats {
|
||||
ctor public SQLiteDebug.DbStats(java.lang.String, long, long, int, int, int, int);
|
||||
field public java.lang.String cache;
|
||||
field public java.lang.String dbName;
|
||||
field public long dbSize;
|
||||
field public int lookaside;
|
||||
field public long pageSize;
|
||||
}
|
||||
|
||||
public static class SQLiteDebug.PagerStats {
|
||||
ctor public SQLiteDebug.PagerStats();
|
||||
field public java.util.ArrayList<android.database.sqlite.SQLiteDebug.DbStats> dbStats;
|
||||
field public int largestMemAlloc;
|
||||
field public int memoryUsed;
|
||||
field public int pageCacheOverflow;
|
||||
}
|
||||
|
||||
public class SQLiteDiskIOException extends android.database.sqlite.SQLiteException {
|
||||
ctor public SQLiteDiskIOException();
|
||||
ctor public SQLiteDiskIOException(java.lang.String);
|
||||
|
||||
@@ -16,13 +16,14 @@
|
||||
|
||||
package android.database.sqlite;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import android.annotation.TestApi;
|
||||
import android.os.Build;
|
||||
import android.os.SystemProperties;
|
||||
import android.util.Log;
|
||||
import android.util.Printer;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* Provides debugging info about all SQLite databases running in the current process.
|
||||
*
|
||||
@@ -117,6 +118,7 @@ public final class SQLiteDebug {
|
||||
/**
|
||||
* contains statistics about a database
|
||||
*/
|
||||
@TestApi
|
||||
public static class DbStats {
|
||||
/** name of the database */
|
||||
public String dbName;
|
||||
@@ -127,7 +129,8 @@ public final class SQLiteDebug {
|
||||
/** the database size */
|
||||
public long dbSize;
|
||||
|
||||
/** documented here http://www.sqlite.org/c3ref/c_dbstatus_lookaside_used.html */
|
||||
/**
|
||||
* Number of lookaside slots: http://www.sqlite.org/c3ref/c_dbstatus_lookaside_used.html */
|
||||
public int lookaside;
|
||||
|
||||
/** statement cache stats: hits/misses/cachesize */
|
||||
@@ -147,6 +150,7 @@ public final class SQLiteDebug {
|
||||
* return all pager and database stats for the current process.
|
||||
* @return {@link PagerStats}
|
||||
*/
|
||||
@TestApi
|
||||
public static PagerStats getDatabaseInfo() {
|
||||
PagerStats stats = new PagerStats();
|
||||
nativeGetPagerStats(stats);
|
||||
|
||||
Reference in New Issue
Block a user