/ All files named "src/status.c"
Login

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

History for src/status.c

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