Berkeley DB Reference Version 5.3.33

DB->stat_print()

#include <db.h>

int
DB->stat_print(DB *db, u_int32_t flags);  

The DB->stat_print() method displays the database statistical information, as described for the DB->stat() method. The information is printed to a specified output channel (see the DB_ENV->set_msgfile() method for more information), or passed to an application callback function (see the DB_ENV->set_msgcall() method for more information).

The DB->stat_print() method may not be called before the DB->open() method is called.

The DB->stat_print() method returns a non-zero error value on failure and 0 on success.

For Berkeley DB SQL table or index statistics, see Command Line Features Unique to dbsql.

Parameters

flags

The flags parameter must be set to 0 or by bitwise inclusively OR'ing together one or more of the following values:

Class

DB

See Also

Database and Related Methods