Db.stat
import com.sleepycat.db.*; public Object Db.stat(int flags);
Description
The Db.stat method creates a statistical structure and fills it with statistics for the database. Statistical structures are created in allocated memory. If db_malloc is non-NULL, it is called to allocate the memory; otherwise, the library function malloc(3) is used. The function db_malloc must match the calling conventions of the malloc(3) library routine. Regardless, the caller is responsible for deallocating the returned memory.To deallocate returned memory, free the returned memory reference; references inside the returned memory do not need to be individually freed.
The flags parameter must be set to 0 or the following value:
Db.DB_CACHED_COUNTS Return ...
Get Berkeley DB now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.