How to find the amount of memory used by an in memory database?

Hello,

I am using 3.4.2 version of java sqlcipher library. We are doing in memory databases. Is there a way to find out how much memory is being used by the in memory database by executing a query on the db?

Thanks,
Partha

Hi @ppsanyal1

We expose the SQLite sqlite3_status API by calling the status(...) method on a SQLiteDatabase instance. You might try passing SQLITE_STATUS_MEMORY_USED as a parameter.