Skip to content
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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

Connor1996
Copy link
Contributor

@Connor1996 Connor1996 commented Nov 28, 2019

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 in StatisticsData.

The changes are:

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>
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,
Copy link
Contributor

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?

@yiwu-arbug
Copy link
Contributor

CI failure seems to be travis error only.

@yiwu-arbug
Copy link
Contributor

@siying @miasantreble any comment on this one? This would allow application to reuse the core-local statistics implementation. Thanks.

@yiwu-arbug
Copy link
Contributor

ping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants