File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -62,12 +62,19 @@ struct TerrierTotalMetrics {
62
62
void Report (uint64_t db_size) {
63
63
auto transfer_txn_per_sec = committed_transfer_txn_cnt_ / static_cast <double >(elapsed_) * 1000 ;
64
64
auto join_txn_per_sec = committed_join_txn_cnt_ / static_cast <double >(elapsed_) * 1000 ;
65
+ auto committed_txn_cnt = committed_join_txn_cnt_ + committed_transfer_txn_cnt_;
65
66
66
67
fmt::print (stderr, " <<< BEGIN\n " );
67
68
68
69
fmt::print (stderr, " transfer: {}\n " , transfer_txn_per_sec);
69
70
fmt::print (stderr, " join: {}\n " , join_txn_per_sec);
70
71
fmt::print (stderr, " db_size: {}\n " , db_size);
72
+ if (committed_txn_cnt != 0 ) {
73
+ fmt::print (stderr, " db_size per committed txn: {}\n " , db_size / static_cast <double >(committed_txn_cnt));
74
+ } else {
75
+ fmt::print (stderr, " db_size per committed txn: 999999999\n " );
76
+ }
77
+
71
78
72
79
fmt::print (stderr, " >>> END\n " );
73
80
}
You can’t perform that action at this time.
0 commit comments