aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain_db.cpp
diff options
context:
space:
mode:
authorwarptangent <warptangent@inbox.com>2015-02-11 15:55:53 -0800
committerwarptangent <warptangent@inbox.com>2015-02-23 00:33:38 -0800
commit8529c0ea9aa305f097d4a2c89d581163e208e04f (patch)
tree84d39b41cac786d3f5b6ceb5128c2a412cd2e308 /src/cryptonote_core/blockchain_db.cpp
parentBlockchainDB: Add virtual function declarations for batch transactions (diff)
downloadmonero-8529c0ea9aa305f097d4a2c89d581163e208e04f.tar.xz
BlockchainDB, BlockchainLMDB: Add profiling for DB commits
Diffstat (limited to 'src/cryptonote_core/blockchain_db.cpp')
-rw-r--r--src/cryptonote_core/blockchain_db.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain_db.cpp b/src/cryptonote_core/blockchain_db.cpp
index af0c9487f..74de19585 100644
--- a/src/cryptonote_core/blockchain_db.cpp
+++ b/src/cryptonote_core/blockchain_db.cpp
@@ -151,6 +151,7 @@ void BlockchainDB::reset_stats()
time_blk_hash = 0;
time_add_block1 = 0;
time_add_transaction = 0;
+ time_commit1 = 0;
}
void BlockchainDB::show_stats()
@@ -166,6 +167,8 @@ void BlockchainDB::show_stats()
<< ENDL
<< "time_add_transaction: " << time_add_transaction << "ms"
<< ENDL
+ << "time_commit1: " << time_commit1 << "ms"
+ << ENDL
<< "*********************************"
<< ENDL
);