Small, Fast, Reliable.
Choose any three.

About Sitemap Documentation Download License News Developers Support

## SQLite C Interface

### Memory Allocator Statistics

>     sqlite3_int64 sqlite3_memory_used(void);
>     sqlite3_int64 sqlite3_memory_highwater(int resetFlag);

In addition to the basic three allocation routines sqlite3_malloc(), sqlite3_free(), and sqlite3_realloc(), the memory allocation subsystem included with the SQLite sources provides the interfaces shown below.

The first of these two routines returns the amount of memory currently outstanding (malloced but not freed). The second returns the largest instantaneous amount of outstanding memory. The highwater mark is reset if the argument is true.

The value returned may or may not include allocation overhead, depending on which built-in memory allocator implementation is used.

See also lists of Objects, Constants, and Functions.

This page last modified 2007/11/22 00:41:31 UTC