-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
statistics: make tickers and histograms extendible #6107
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
@@ -541,6 +541,8 @@ class Statistics { | |||
}; | |||
|
|||
// Create a concrete DBStatistics object | |||
template <uint32_t TICKER_MAX = TICKER_ENUM_MAX, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we keep the existing API unchanged and add the template version of CreateDBStatistics
to another header file under include/rocksdb/utilities?
CI failure seems to be travis error only. |
@siying @miasantreble any comment on this one? This would allow application to reuse the core-local statistics implementation. Thanks. |
ping |
For outer plugins, they may want to store its statistics into Rocksdb's statistics to leverage the cache-friendly optimization. So making
StatisticsImpl
as a template to let outer users reserve a larger place inStatisticsData
.The changes are:
StatisticsImpl
as a template