| SQLITE_STATUS_MEMORY_USED(3) | Library Functions Manual | SQLITE_STATUS_MEMORY_USED(3) |
SQLITE_STATUS_MEMORY_USED,
SQLITE_STATUS_PAGECACHE_USED,
SQLITE_STATUS_PAGECACHE_OVERFLOW,
SQLITE_STATUS_SCRATCH_USED,
SQLITE_STATUS_SCRATCH_OVERFLOW,
SQLITE_STATUS_MALLOC_SIZE,
SQLITE_STATUS_PARSER_STACK,
SQLITE_STATUS_PAGECACHE_SIZE,
SQLITE_STATUS_SCRATCH_SIZE,
SQLITE_STATUS_MALLOC_COUNT —
status parameters
#include
<sqlite3.h>
#define SQLITE_STATUS_MEMORY_USED
#define SQLITE_STATUS_PAGECACHE_USED
#define SQLITE_STATUS_PAGECACHE_OVERFLOW
#define SQLITE_STATUS_SCRATCH_USED
#define SQLITE_STATUS_SCRATCH_OVERFLOW
#define SQLITE_STATUS_MALLOC_SIZE
#define SQLITE_STATUS_PARSER_STACK
#define SQLITE_STATUS_PAGECACHE_SIZE
#define SQLITE_STATUS_SCRATCH_SIZE
#define SQLITE_STATUS_MALLOC_COUNT
These integer constants designate various run-time status
parameters that can be returned by
sqlite3_status().
sqlite3_malloc(),
either directly or indirectly. The figure includes calls made to
sqlite3_malloc() by the application and internal
memory usage by the SQLite library. Auxiliary page-cache memory controlled
by SQLITE_CONFIG_PAGECACHE is not included in this parameter. The amount
returned is the sum of the allocation sizes as reported by the xSize
method in sqlite3_mem_methods.sqlite3_malloc() or
sqlite3_realloc()
(or their internal equivalents). Only the value returned in the
*pHighwater parameter to sqlite3_status() is of
interest. The value written into the *pCurrent parameter is
undefined.sqlite3_malloc(). The
returned value includes allocations that overflowed because they where too
large (they were larger than the "sz" parameter to
SQLITE_CONFIG_PAGECACHE) and allocations that overflowed because no space
was left in the page cache.sqlite3_status() is of interest. The
value written into the *pCurrent parameter is undefined.New status parameters may be added from time to time.
These declarations were extracted from the interface documentation at line 8549.
#define SQLITE_STATUS_MEMORY_USED 0 #define SQLITE_STATUS_PAGECACHE_USED 1 #define SQLITE_STATUS_PAGECACHE_OVERFLOW 2 #define SQLITE_STATUS_SCRATCH_USED 3 /* NOT USED */ #define SQLITE_STATUS_SCRATCH_OVERFLOW 4 /* NOT USED */ #define SQLITE_STATUS_MALLOC_SIZE 5 #define SQLITE_STATUS_PARSER_STACK 6 #define SQLITE_STATUS_PAGECACHE_SIZE 7 #define SQLITE_STATUS_SCRATCH_SIZE 8 /* NOT USED */ #define SQLITE_STATUS_MALLOC_COUNT 9
sqlite3_malloc(3), sqlite3_mem_methods(3), sqlite3_status(3), SQLITE_CONFIG_SINGLETHREAD(3)
| January 24, 2024 | NetBSD 11.0 |