# Runtime Statistics

> Applications can call the following APIs to know how much database memory is left or currently in use, to display detailed information regarding the memory usage of indexes, and to register allocation callback functions to monitor dynamic memory usage.

> mco_db_free_pages | Return the count of available pages
> mco_db_total_pages | Returns the count of pages in the database
> mco_db_page_size | Returns the database page size
> mco_class_stat_get | Return statistics maintained for the specified class
> mco_index_stat_num | Return the number of indexes in the database
> mco_index_stat_get | Return statistics maintained for the specified index
> mco_index_get_size | Return the size of the specified index
> mco_ register_alloc_callback | Register a callback function that is called by the runtime when it detects low memory conditions
> mco_register_disk_alloc_callback | Register a callback function with the persistent support that is called by the runtime when it detects low memory conditions

> Related Topics