diff options
author | dan <dan@noemail.net> | 2010-07-24 11:28:28 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2010-07-24 11:28:28 +0000 |
commit | d46def77db74a7dfadabb16da57c25d83af0c248 (patch) | |
tree | 8483a41f5c4a98751242c17018d127276a5eae6c /src/sqliteInt.h | |
parent | 5419ee5f2f068601ebc494b104f92cadfc7de5e7 (diff) | |
download | sqlite-d46def77db74a7dfadabb16da57c25d83af0c248.tar.gz sqlite-d46def77db74a7dfadabb16da57c25d83af0c248.zip |
Experimental code to measure memory consumed by database schemas and prepared statements.
FossilOrigin-Name: 9aa30342f4de4eff630520ea8e07ad253d3f0877
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index a9a0885c1..66f1cffb5 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -860,6 +860,8 @@ struct sqlite3 { int nStatement; /* Number of nested statement-transactions */ u8 isTransactionSavepoint; /* True if the outermost savepoint is a TS */ i64 nDeferredCons; /* Net deferred constraints this transaction. */ + int *pnBytesFreed; /* If not NULL, increment this in DbFree() */ + SubProgram *pSubProgram; /* List of sub-programs already visited*/ #ifdef SQLITE_ENABLE_UNLOCK_NOTIFY /* The following variables are all protected by the STATIC_MASTER @@ -2908,7 +2910,7 @@ int sqlite3InvokeBusyHandler(BusyHandler*); int sqlite3FindDb(sqlite3*, Token*); int sqlite3FindDbName(sqlite3 *, const char *); int sqlite3AnalysisLoad(sqlite3*,int iDB); -void sqlite3DeleteIndexSamples(Index*); +void sqlite3DeleteIndexSamples(sqlite3*,Index*); void sqlite3DefaultRowEst(Index*); void sqlite3RegisterLikeFunctions(sqlite3*, int); int sqlite3IsLikeFunction(sqlite3*,Expr*,int*,char*); |