Enable TopKeys by default.

This is a better API as it's less confusing. This feature is still disabled by default via the controlling flag.

Signed-off-by: chakaz <chakaz@chakaz>
This commit is contained in:
chakaz 2023-03-17 08:48:38 +02:00 committed by Roman Gershman
parent 96b44750fe
commit 5b4af6dbd0

View file

@ -41,8 +41,8 @@ class TopKeys {
// low value for high load is frequent string copying and memory allocation.
uint64_t min_key_count_to_record = 100;
// Disabled by default, as this is a debug feature with runtime and memory overhead.
bool enabled = false;
// Pass false to disable, making this class no-op.
bool enabled = true;
};
explicit TopKeys(Options options);