/ File History
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History of src/status.c

2019-03-21
17:13
Disable the feature on this branch in non-SQLITE_ENABLE_SHARED_SCHEMA builds. file: [d9f7d66a] check-in: [b8e53608] user: dan branch: reuse-schema, size: 12888
2019-02-18
18:16
Ensure that creating temp schema items does not cause an OPEN_SHARABLE_SCHEMA connection to load all schemas into memory. file: [28fcf86f] check-in: [88cbf54e] user: dan branch: reuse-schema, size: 12724
2019-02-14
21:04
Fix SQLITE_DBSTATUS_SCHEMA_USED so that it works with SQLITE_OPEN_SHARED_SCHEMA connections. file: [0361d78d] check-in: [d43b3c05] user: dan branch: reuse-schema, size: 12624
2019-02-02
21:02
Try new approach ensuring that each Schema object is only used by one connection/database at any one time. file: [41d9cc5d] check-in: [9e8e5f52] user: dan branch: reuse-schema, size: 12208
2018-10-08
23:29
Add the ability to open a database connection in -reuseschema mode in the CLI. Adjust memory allocation accounting so that a shared schema is allocated across each database sharing it. file: [b651e68a] check-in: [3869b210] user: drh branch: reuse-schema, size: 12324
2018-03-14
14:53
Add the SQLITE_DBSTATUS_CACHE_SPILL option to sqlite3_db_status() file: [46e7aec1] check-in: [3faeb851] user: drh branch: dbstatus-cache-spill, size: 12178
2017-08-29
20:21
Faster memory allocation from lookaside by not trying to keep track of the number of outstanding allocations, and rather computing that value only when requested. file: [9737ed01] check-in: [a06263f1] user: drh branch: trunk, size: 12054
2017-08-28
15:51
Remove the rarely-used scratch memory allocator. This makes the code smaller, faster, and easier to maintain. In place of the scratch allocator, add the SQLITE_CONFIG_SMALL_MALLOC configuration option that provides a hint to SQLite that large memory allocations should be avoided. file: [90450a49] check-in: [54b00024] user: drh branch: trunk, size: 11324
2017-01-03
20:01
Use the CLANG_VERSION macro to control clang-specific features. file: [1b1e64fb] check-in: [f8ebeec2] user: drh branch: gnu-safe-math, size: 11534
18:05
Use the GCC built-in __sync_fetch_and_sub() to make the sqlite3StatusDown() routine atomic, and thereby avoid some mutexing. file: [56174fdb] check-in: [f69ce75b] user: drh branch: gnu-safe-math, size: 11527
2016-08-02
08:45
Fix harmless compiler warnings in sqlite3_status(). file: [a9e66593] check-in: [7c38a79c] user: drh branch: trunk, size: 11368
2016-07-06
18:12
Change the name of the SQLITE_DBSTATUS_PROPORTIONAL_CACHE_USED to SQLITE_DBSTATUS_CACHE_USED_SHARED. file: [5b18f952] check-in: [d58401ab] user: dan branch: dbstatus-prop-cache-used, size: 11360
10:12
Add the SQLITE_DBSTATUS_PROPORTIONAL_CACHE_USED sqlite3_db_status() parameter. file: [d92daea3] check-in: [118321c8] user: dan branch: dbstatus-prop-cache-used, size: 11372
2015-10-22
18:06
Alternate compiler warning fix for sqlite3StatusHighwater. file: [70912d7b] check-in: [4315d202] user: mistachkin branch: trunk, size: 11158
2015-10-20
23:40
Fix compiler warnings. file: [70059327] check-in: [12e869bb] user: mistachkin branch: noWarn, size: 11211
2015-10-15
16:20
Performance optimizations to the sqlite3MallocSize() by requiring the argument to always be non-NULL. file: [286f6398] check-in: [cb65989b] user: drh branch: trunk, size: 11093
15:28
Change sqlite3StatusSet() into sqlite3StatusHighwater() so that only the highwater mark is recorded. This gives a small size reduction and performance improvement. file: [3c4be54e] check-in: [6422d223] user: drh branch: trunk, size: 11109
2015-03-24
18:19
Suppress a compiler warning that was appearing with SQLITE_THREADSAFE=0. file: [f266ad8a] check-in: [436314b5] user: drh branch: trunk, size: 11031
2015-03-23
19:16
Fix a non-C89 variable declaration that causes problems for MSVC. file: [2e5c8686] check-in: [3de085ea] user: drh branch: status64, size: 10967
18:52
Add the SQLITE_PTRSIZE macro. Use it to help sqlite3_status() run faster on 32-bit systems. file: [8ccd03e3] check-in: [c742bd60] user: drh branch: status64, size: 10967
17:25
Add the sqlite3_status64() interface. Make the new interface and the legacy sqlite3_status() both atomic and threadsafe. Check threadsafety using assert()s. file: [35d02aaf] check-in: [1ce8e8fa] user: drh branch: status64, size: 10794
2014-10-24
00:35
Add the SQLITE_ENABLE_API_ARMOR compile-time option. This is a work in progress and is not yet completely functional. file: [81712116] check-in: [c297a84b] user: drh branch: api-armor, size: 8440
2014-10-03
16:00
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. file: [961d5926] check-in: [d2fc3227] user: drh branch: trunk, size: 8199
2013-07-11
13:49
Remove the undocumented sqlite3_foreign_key_check() API and replace it with sqlite3_db_status(db, SQLITE_DBSTATUS_DEFERRED_FKS, ...). Add test cases for the new functionality. file: [7ac05a5c] check-in: [d39e65fe] user: drh branch: sessions, size: 8026
2012-11-06
20:39
Adjust the SQLITE_DBSTATUS_STMT_USED calculation to take the modified usage of sqlite3VdbeClearObject() into account. file: [bedc37ec] check-in: [82eb7ead] user: mistachkin branch: trunk, size: 7650
2012-10-26
00:11
Make sure all virtual table cursors have been closed on a prepared statement prior to unlinking the perpared statement from its database connection. file: [53463144] check-in: [f7c5abe8] user: drh branch: deferred-close-order, size: 7616
2012-03-24
19:44
Add SQLITE_DBSTATUS_CACHE_WRITE. Used to query a database connection for the cumulative number of database pages written. file: [35939e7e] check-in: [3cb6a879] user: dan branch: fts4-incr-merge, size: 7617
2011-09-22
14:41
Add the SQLITE_DB_STATUS_CACHE_HIT and MISS options. For querying the number of cache hits and misses on a per-connection basis. file: [4568e72d] check-in: [5100b6e9] user: dan branch: trunk, size: 7506
2011-09-20
15:53
Add SQLITE_STMTSTATUS_CACHE_HIT/MISS and SQLITE_DB_STATUS_CACHE_HIT/MISS. For querying the number of pager cache hits and misses on a statement or connection basis. file: [5bd4b18b] check-in: [89272357] user: dan branch: cache-stats, size: 7390
2011-04-04
18:22
Add a description of access rules for the Schema object and lots of asserts to verify that the access rules are followed. file: [7ac64842] check-in: [ae8374af] user: drh branch: schema-parse-refactor, size: 6871
2010-12-20
15:51
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. file: [4997380f] check-in: [34613f1d] user: drh branch: experimental, size: 6807
2010-07-26
19:09
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. file: [496913d4] check-in: [6df081ad] user: drh branch: trunk, size: 6173
18:43
Add the SQLITE_STATUS_MALLOC_COUNT option for sqlite3_status(). file: [f61b49b6] check-in: [8f8e442b] user: drh branch: trunk, size: 6164
15:57
When calculating schema memory, use the actual allocated size of hash elements, not sizeof(HashElem). Also fix a bug in dbstatus.test. file: [51f65ba9] check-in: [e327ef37] user: dan branch: experimental, size: 6162
12:36
Remove an assert() that uses a variable removed earlier. file: [0fa47a43] check-in: [c04907e6] user: dan branch: experimental, size: 6025
12:05
Change the way SubProgram objects are deleted so that the code is the same for deletion and measurement. file: [ff0f6191] check-in: [00e55102] user: dan branch: experimental, size: 6061
11:59
Update comments to better documentation the new memory measurement functions. file: [0fb0feca] check-in: [620bad03] user: drh branch: experimental, size: 6224
2010-07-24
11:28
Experimental code to measure memory consumed by database schemas and prepared statements. file: [ab77d17f] check-in: [9aa30342] user: dan branch: experimental, size: 5854
2010-07-22
17:55
Make the sqlite3_db_status() routine threadsafe. file: [e2ad9f18] check-in: [241f7bd1] user: dan branch: trunk, size: 4108
2010-03-10
21:42
Add the SQLITE_DBSTATUS_CACHE_SIZE verb for sqlite3_db_status(). The highwater mark does not yet work on this verb. file: [4df6fe7d] check-in: [418c6d81] user: drh branch: trunk, size: 3943
2010-02-23
20:11
Continuing improvements to error reporting and the sqlite3_log() routine. file: [d329385a] check-in: [edea3bb7] user: drh branch: trunk, size: 3365
2009-11-10
01:30
Remove the obsolete "$Id:$" RCS identifier strings from the source code. file: [e651be6b] check-in: [f6c045f6] user: drh branch: trunk, size: 3360
2008-09-02
00:52
Continuing work on adding full support for the SQLITE_OMIT_WSD compile-time option. (CVS 5658) file: [237b193e] check-in: [ef26ea5c] user: drh branch: trunk, size: 3416
2008-08-12
15:21
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) file: [8caa772c] check-in: [697fe7a3] user: drh branch: trunk, size: 2814
2008-08-05
17:53
Add SQLITE_STATUS_PAGECACHE_SIZE and SQLITE_STATUS_SCRATCH_SIZE. (CVS 5537) file: [b39b4468] check-in: [c4e9b824] user: drh branch: trunk, size: 2983
2008-08-01
16:31
Test cases for sqlite3_db_config() and sqlite3_db_status(). (CVS 5518) file: [8ad1f215] check-in: [6a6b9430] user: drh branch: trunk, size: 2983
2008-07-28
19:34
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) file: [ca61c18b] check-in: [e48f9697] user: drh branch: trunk, size: 2935
2008-07-25
15:39
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) file: [0f72b854] check-in: [ef0250f3] user: drh branch: trunk, size: 2285
2008-07-11
16:15
Additional test coverage for the btree module. Remove the failsafe() macro and replace it with ALWAYS() and NEVER(). (CVS 5395) file: [2076bc99] check-in: [d7e2f0d2] user: drh branch: trunk, size: 2285
2008-07-09
13:28
Begin adding the failsafe() macro. (CVS 5383) file: [b8d7b1f6] check-in: [8aae4fe7] user: drh branch: trunk, size: 2451
2008-06-19
13:20
Check in the missing status.c source file. (CVS 5245) file: [6cb10377] check-in: [298113d4] user: drh branch: trunk, size: 2285 Added