summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth Moore <sethmo@google.com>2021-04-02 16:54:36 +0000
committerSeth Moore <sethmo@google.com>2021-04-13 21:54:35 +0000
commit936e83ba24e2440093bb70a003e9220ea8150f81 (patch)
tree4b702425e650f502c07abb7f46d57d1ef6be438d
parent22c60569b4fff427dd3cc976f4fced0a5a1037bb (diff)
downloadsqlite-936e83ba24e2440093bb70a003e9220ea8150f81.tar.gz
Enable the dbstat virtual table for sqlite
The dbstat table allows tools like sqlite3_analyzer to run and dump statistics about the database. It also allows runtime queries for information such as database size, which is needed for keystore2 metrics. Bug: 172013262 Test: atest system/security/keystore2 Change-Id: Icbc58570f86ce9f4d275a0bed7cc356e3369435d
-rw-r--r--dist/Android.bp1
1 files changed, 1 insertions, 0 deletions
diff --git a/dist/Android.bp b/dist/Android.bp
index b31d851..f34e461 100644
--- a/dist/Android.bp
+++ b/dist/Android.bp
@@ -93,6 +93,7 @@ cc_defaults {
"-Dfdatasync=fdatasync",
"-DHAVE_MALLOC_H=1",
"-DHAVE_MALLOC_USABLE_SIZE",
+ "-DSQLITE_ENABLE_DBSTAT_VTAB",
],
},
},