#include <db.h> int DB_ENV->lock_stat_print(DB_ENV *env, u_int32_t flags);
The DB_ENV->lock_stat_print()
method displays the locking subsystem
statistical information, as described for the DB_ENV->lock_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_ENV->lock_stat_print()
method may not be called before the
DB_ENV->open()
method is
called.
The DB_ENV->lock_stat_print()
method returns a non-zero error value on failure and 0 on success.
The flags parameter must be set to 0 or by bitwise inclusively OR'ing together one or more of the following values:
Display all available information. For each object, the amount of data displayed is limited to 100 bytes, unless some other limit is set by calling DB_ENV->set_data_len() , or by using the DB_CONFIG "set_data_len" parameter.
Display allocation information. To display allocation information, both DB_STAT_ALLOC and DB_STAT_ALL need to be set.
Reset statistics after displaying their values.
Display the lock conflict matrix.
Display the lockers within hash chains.
Display the lock objects within hash chains. For each object, the amount of data displayed is limited to 100 bytes, unless some other limit is set by calling DB_ENV->set_data_len() , or by using the DB_CONFIG "set_data_len" parameter.
Display the locking subsystem parameters.