ITTIA DB SQL C API  5.4.0
db_mem_statistics_t Struct Reference

#include <ittia/db.h>

Data Fields

int have_statistics
db_statitem_t nreq
struct {
   db_statitem_t   sys
   db_statitem_t   user
   size_t   max_alloc
actual_bytes
struct {
   db_statitem_t   heap
   size_t   max_alloc
estimate_blocks
size_t num_segs
size_t page_size
size_t heap_size

Detailed Description

Statistics for memory allocation with the built-in allocator.

Only memory allocated internally by ITTIA DB is tracked, but the amount can vary with application behavior.

See also:
db_mem_statistics, db_done_ex, db_init_ex

Field Documentation

True when memory allocation statistics are available.

These statistics are only available when the built-in allocator has been enabled, the

DB_MEMFLAGS_TRACE flag is set, and the QA library is linked.

See also:
db_init_ex

Number of outstanding allocations.

Total heap memory consumed, including overhead, in bytes.

Total allocated space, excluding overhead, in bytes.

Maximum individual allocation request, in bytes, since reset.

Maximum number of blocks required for an individual allocation since reset.

Number of segments used for at least one allocation.

Block size (minimum unit of allocation).

Total memory configured for the allocator.