diff options
author | drh <drh@noemail.net> | 2010-12-20 15:51:58 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2010-12-20 15:51:58 +0000 |
commit | 0b12e7f86035122fbde8f85a9460767c1294ae04 (patch) | |
tree | f6b4b6cf3658cf89dbfdfdf6f2f36e21260d4902 /src/sqliteInt.h | |
parent | 9c88d68988afd24e1ee607deef5531115a2c95f7 (diff) | |
download | sqlite-0b12e7f86035122fbde8f85a9460767c1294ae04.tar.gz sqlite-0b12e7f86035122fbde8f85a9460767c1294ae04.zip |
Add additional DBSTATUS options for measuring the hit and miss rates against
the lookaside memory pool - information useful in tuning the lookaside size.
Currently experimental pending analysis of performance impact.
FossilOrigin-Name: 34613f1dc54c638531ca2f5907b71fbe8841233e
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index 4f0e08ea7..5233e99f0 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -737,6 +737,7 @@ struct Lookaside { u8 bMalloced; /* True if pStart obtained from sqlite3_malloc() */ int nOut; /* Number of buffers currently checked out */ int mxOut; /* Highwater mark for nOut */ + int anStat[3]; /* 0: hits. 1: size misses. 2: full misses */ LookasideSlot *pFree; /* List of available buffers */ void *pStart; /* First byte of available memory space */ void *pEnd; /* First byte past end of available space */ |