diff options
Diffstat (limited to 'lib/rbot/dbhash.rb')
-rw-r--r-- | lib/rbot/dbhash.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/rbot/dbhash.rb b/lib/rbot/dbhash.rb index 3168f208..2170ea08 100644 --- a/lib/rbot/dbhash.rb +++ b/lib/rbot/dbhash.rb @@ -135,6 +135,21 @@ module Irc end end + def DBTree.stats() + begin + debug "General stats:" + debug @@env.stat + debug "Lock stats:" + debug @@env.lock_stat + debug "Log stats:" + debug @@env.log_stat + debug "Txn stats:" + debug @@env.txn_stat + rescue + debug "Couldn't dump stats" + end + end + def DBTree.cleanup_env() begin debug "DBTree: checking transactions ..." |