feat: introduce transaction statistics in the info output (#2328)

1. How many transactions we processed by type
2. How many transactions we processed by width (number of unique shards).

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
Roman Gershman 2023-12-23 13:18:49 +02:00 committed by GitHub
parent 1376295799
commit bbe3d9303b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 179 additions and 82 deletions

View file

@ -115,6 +115,8 @@ class BaseFamilyTest : public ::testing::Test {
return service_->server_family().GetMetrics();
}
void ClearMetrics();
void AdvanceTime(int64_t ms) {
TEST_current_time_ms += ms;
}