drh
38b802dfd7
Fix harmless compiler warnings in sqlite3_status().
...
FossilOrigin-Name: 7c38a79cdd42aaa45715aea330d10ca859098837
2016-08-02 08:45:26 +00:00
dan
9c10608a26
Change the name of the SQLITE_DBSTATUS_PROPORTIONAL_CACHE_USED to SQLITE_DBSTATUS_CACHE_USED_SHARED.
...
FossilOrigin-Name: d58401ab26c7c5417eb7d540f47d11c4e49edcb2
2016-07-06 18:12:54 +00:00
dan
272989b44d
Add the SQLITE_DBSTATUS_PROPORTIONAL_CACHE_USED sqlite3_db_status() parameter.
...
FossilOrigin-Name: 118321c8b9d88b8f439c952436f42838c3fc80cb
2016-07-06 10:12:02 +00:00
mistachkin
7ef855f156
Alternate compiler warning fix for sqlite3StatusHighwater.
...
FossilOrigin-Name: 4315d20200d578c9252dcb26e60739063a8eff1d
2015-10-22 18:06:40 +00:00
drh
039ca6ab59
Performance optimizations to the sqlite3MallocSize() by requiring the
...
argument to always be non-NULL.
FossilOrigin-Name: cb65989b0710c65e4df69063b346344fdb1d12c7
2015-10-15 16:20:57 +00:00
drh
b02392e6f0
Change sqlite3StatusSet() into sqlite3StatusHighwater() so that only the
...
highwater mark is recorded. This gives a small size reduction and
performance improvement.
FossilOrigin-Name: 6422d223dd10018703c6b083d29a3c35c837fc97
2015-10-15 15:28:56 +00:00
drh
4756404847
Suppress a compiler warning that was appearing with SQLITE_THREADSAFE=0.
...
FossilOrigin-Name: 436314b5728c9413f9ac2d837e1c19364f31be72
2015-03-24 18:19:39 +00:00
drh
2493870d9c
Fix a non-C89 variable declaration that causes problems for MSVC.
...
FossilOrigin-Name: 3de085eab2fbe491f2242b340851e8af8f61ad13
2015-03-23 19:16:30 +00:00
drh
2b4905c81f
Add the SQLITE_PTRSIZE macro. Use it to help sqlite3_status() run faster
...
on 32-bit systems.
FossilOrigin-Name: c742bd6047bc6d0319a5a8c31d97f6b9229507f6
2015-03-23 18:52:56 +00:00
drh
af89fe66ea
Add the sqlite3_status64() interface. Make the new interface and the legacy
...
sqlite3_status() both atomic and threadsafe. Check threadsafety using
assert()s.
FossilOrigin-Name: 1ce8e8fa4b866aafa12b1da0eb4d02321af9293e
2015-03-23 17:25:18 +00:00
drh
9ca95730e3
Add the SQLITE_ENABLE_API_ARMOR compile-time option. This is a work in
...
progress and is not yet completely functional.
FossilOrigin-Name: c297a84bc678f81ffc0aa9139ab73f0ca87c1971
2014-10-24 00:35:58 +00:00
drh
79f7af9a9e
Add requirements marks on the sqlite3_db_status() interface implementation.
...
Fix a typo in the documentation. Fix the new sqlite3_result_text64() routine
so that it works correctly with an encoding parameter of SQLITE_UTF16.
FossilOrigin-Name: d2fc322728331ae2d147c8496129df5e3c655eb5
2014-10-03 16:00:51 +00:00
drh
648e264342
Add the "defer_foreign_keys" pragma and the SQLITE_DBSTATUS_DEFERRED_FKS
...
value for sqlite3_db_status(). This is a cherry-pick of a sequence of five
checkins in the sessions branch between [1d44e5d3c2] and [d39e65fe70].
FossilOrigin-Name: 527121ac3cdc96ac33ad975c227a6685a2f7e999
2013-07-11 15:03:32 +00:00
mistachkin
70cb28fc0e
Adjust the SQLITE_DBSTATUS_STMT_USED calculation to take the modified usage of sqlite3VdbeClearObject() into account.
...
FossilOrigin-Name: 82eb7eadb8c76b3af8c811d791f87a634c35935f
2012-11-06 20:39:11 +00:00
drh
cb103b9274
Make sure all virtual table cursors have been closed on a prepared statement
...
prior to unlinking the perpared statement from its database connection.
FossilOrigin-Name: f7c5abe8739090db0738d2c7002a0d71f76c927e
2012-10-26 00:11:23 +00:00
drh
9ad3ee40f2
Add SQLITE_DBSTATUS_CACHE_WRITE. Used to query a database connection for the cumulative number of database pages written.
...
FossilOrigin-Name: 05f98d4eec0f029b76fd471f8d9edf2807de6b55
2012-03-24 20:06:14 +00:00
dan
58ca31c905
Add the SQLITE_DB_STATUS_CACHE_HIT and MISS options. For querying the number of cache hits and misses on a per-connection basis.
...
FossilOrigin-Name: 5100b6e9dc5107f0f835d0aac26fe6d4938ffc73
2011-09-22 14:41:16 +00:00
drh
2120608e0f
Add a description of access rules for the Schema object and lots of asserts
...
to verify that the access rules are followed.
FossilOrigin-Name: ae8374af057b6e6546e9265148cfffe32fcb0849
2011-04-04 18:22:02 +00:00
drh
0b12e7f860
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
2010-12-20 15:51:58 +00:00
drh
81ba7d16b7
Fix a bug in the SQLITE_STATUS_MALLOC_COUNT counter. Add an ALWAYS() around
...
a condition in the SQLITE_DBSTATUS_SCHEMA_USED logic that is always true.
FossilOrigin-Name: 6df081adbfa581c477bd2c96bb3f7f44be131a8f
2010-07-26 19:09:31 +00:00
drh
eafc43b156
Add the SQLITE_STATUS_MALLOC_COUNT option for sqlite3_status().
...
FossilOrigin-Name: 8f8e442b3af553753e25c304efa289b626e3a227
2010-07-26 18:43:40 +00:00
dan
111becfbc0
When calculating schema memory, use the actual allocated size of hash elements, not sizeof(HashElem). Also fix a bug in dbstatus.test
...
FossilOrigin-Name: e327ef37faec52ce99591266160be2ce2d577cc3
2010-07-26 15:57:01 +00:00
dan
eb8603a7c4
Remove an assert() that uses a variable removed earlier.
...
FossilOrigin-Name: c04907e69820bd19f647c5f555327e0058db4e6d
2010-07-26 12:36:29 +00:00
dan
d19c933e8e
Change the way SubProgram objects are deleted so that the code is the same for deletion and measurement.
...
FossilOrigin-Name: 00e55102a8309eb6df08ad4a8937ba02688bac62
2010-07-26 12:05:17 +00:00
drh
643f35e4a6
Update comments to better documentation the new memory measurement functions.
...
FossilOrigin-Name: 620bad035755449c4e6a762f01ef2b1d9e521c7c
2010-07-26 11:59:40 +00:00
dan
d46def77db
Experimental code to measure memory consumed by database schemas and prepared statements.
...
FossilOrigin-Name: 9aa30342f4de4eff630520ea8e07ad253d3f0877
2010-07-24 11:28:28 +00:00
dan
2339f06714
Make the sqlite3_db_status() routine threadsafe.
...
FossilOrigin-Name: 241f7bd190329fa02ca428651072a4a206132eab
2010-07-22 17:55:40 +00:00
drh
63da089314
Add the SQLITE_DBSTATUS_CACHE_SIZE verb for sqlite3_db_status(). The
...
highwater mark does not yet work on this verb.
FossilOrigin-Name: 418c6d8113bc337556b0d47acfd6a7d865d1121f
2010-03-10 21:42:07 +00:00
drh
413c3d36a2
Continuing improvements to error reporting and the sqlite3_log() routine.
...
FossilOrigin-Name: edea3bb740ddd096a46e00678b59d465bb1e2903
2010-02-23 20:11:56 +00:00
drh
c81c11f62c
Remove the obsolete "$Id:$" RCS identifier strings from the source code.
...
FossilOrigin-Name: f6c045f649036958078cb15cd9d5453680c82b0c
2009-11-10 01:30:52 +00:00
drh
78f82d1e6c
Continuing work on adding full support for the SQLITE_OMIT_WSD
...
compile-time option. (CVS 5658)
FossilOrigin-Name: ef26ea5c46d3915d206f8ff7f82a24f4c8955f1f
2008-09-02 00:52:52 +00:00
drh
93ed56d9ea
Revise the initialization and shutdown logic so that it no longer keeps
...
a recursive mutex allocated for the whole interval but instead releases
the mutex as soon as possible. Do not reset status values upon initialization. (CVS 5559)
FossilOrigin-Name: 697fe7a3167c22a3232ce154e9d47cf75af613c4
2008-08-12 15:21:11 +00:00
drh
e50135e26d
Add SQLITE_STATUS_PAGECACHE_SIZE and SQLITE_STATUS_SCRATCH_SIZE. (CVS 5537)
...
FossilOrigin-Name: c4e9b824062ba82a8db01cd82e3e681de1940208
2008-08-05 17:53:22 +00:00
drh
6480aad473
Test cases for sqlite3_db_config() and sqlite3_db_status(). (CVS 5518)
...
FossilOrigin-Name: 6a6b94302acdfe6404b04bff1cc8d16c1ef69df9
2008-08-01 16:31:14 +00:00
drh
633e6d57d9
Implement the "lookaside" memory allocation cache. Use of this cache makes
...
the speed1.test script run about 15% faster. Added new interfaces to
control the cache. (CVS 5488)
FossilOrigin-Name: e48f9697e9fea339e150ddc32940760027dd07d9
2008-07-28 19:34:53 +00:00
drh
ec424a5be6
Add the capability to track the maximum depth of the LALR(1) parser stack
...
so that critical applications can check to see if they are getting close
to limits. (CVS 5481)
FossilOrigin-Name: ef0250f3dc769a4acd534f31fa06d90922d4145b
2008-07-25 15:39:03 +00:00
drh
34004cebb6
Additional test coverage for the btree module. Remove the failsafe() macro
...
and replace it with ALWAYS() and NEVER(). (CVS 5395)
FossilOrigin-Name: d7e2f0d2d45574d6191c1b191c0daf5260696f27
2008-07-11 16:15:17 +00:00
drh
22c2403a1c
Begin adding the failsafe() macro. (CVS 5383)
...
FossilOrigin-Name: 8aae4fe7e702b7636fba1fd609a0ca22fdcc3371
2008-07-09 13:28:53 +00:00
drh
c4b18b827d
Check in the missing status.c source file. (CVS 5245)
...
FossilOrigin-Name: 298113d4a707ecf59d5dfd8bca45bfe734fb9fbb
2008-06-19 13:20:01 +00:00