a = .array~of( - |
.ooSQLite~STATUS_MEMORY_USED ,- |
.ooSQLite~STATUS_PAGECACHE_USED ,- |
.ooSQLite~STATUS_PAGECACHE_OVERFLOW ,- |
.ooSQLite~STATUS_SCRATCH_USED ,- |
.ooSQLite~STATUS_SCRATCH_OVERFLOW ,- |
.ooSQLite~STATUS_MALLOC_SIZE ,- |
.ooSQLite~STATUS_PARSER_STACK ,- |
.ooSQLite~STATUS_PAGECACHE_SIZE ,- |
.ooSQLite~STATUS_SCRATCH_SIZE ,- |
.ooSQLite~STATUS_MALLOC_COUNT - |
) |
|
n = .array~of( - |
'STATUS_MEMORY_USED ' ,- |
'STATUS_PAGECACHE_USED ' ,- |
'STATUS_PAGECACHE_OVERFLOW' ,- |
'STATUS_SCRATCH_USED ' ,- |
'STATUS_SCRATCH_OVERFLOW ' ,- |
'STATUS_MALLOC_SIZE ' ,- |
'STATUS_PARSER_STACK ' ,- |
'STATUS_PAGECACHE_SIZE ' ,- |
'STATUS_SCRATCH_SIZE ' ,- |
'STATUS_MALLOC_COUNT ' - |
) |
|
values = .directory~new |
do i = 1 to a~items |
.ooSQLite~status(a[i], values) |
say n[i]': current:' values~current~left(10) 'high water:' values~highWater |
end |
|
|
/* Output might be: |
|
STATUS_MEMORY_USED : current: 88864 high water: 93664 |
STATUS_PAGECACHE_USED : current: 0 high water: 0 |
STATUS_PAGECACHE_OVERFLOW: current: 16288 high water: 16288 |
STATUS_SCRATCH_USED : current: 0 high water: 0 |
STATUS_SCRATCH_OVERFLOW : current: 0 high water: 0 |
STATUS_MALLOC_SIZE : current: 512 high water: 64000 |
STATUS_PARSER_STACK : current: 0 high water: 0 |
STATUS_PAGECACHE_SIZE : current: 1272 high water: 1272 |
STATUS_SCRATCH_SIZE : current: 0 high water: 0 |
STATUS_MALLOC_COUNT : current: 95 high water: 105 |
|
*/
|