-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Enhancement] add more profile and metrics to measure runtime bloom filter size #46360
Conversation
Signed-off-by: silverbullet233 <3675229+silverbullet233@users.noreply.github.com>
Signed-off-by: silverbullet233 <3675229+silverbullet233@users.noreply.github.com>
8f9e5f9
[FE Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
[BE Incremental Coverage Report]✅ pass : 72 / 76 (94.74%) file detail
|
for (int i = 0; i < EventType::MAX_COUNT; i++) { | ||
auto* metrics = new RuntimeFilterMetrics(); | ||
const auto& type = EventTypeToString((EventType)i); | ||
#define REGISTER_RUNTIME_FILTER_METRIC(name) \ |
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.
maybe better move this macro out of the function body, favor for code readability.
@@ -135,6 +143,9 @@ SystemMetrics::~SystemMetrics() { | |||
if (_line_ptr != nullptr) { | |||
free(_line_ptr); | |||
} | |||
for (auto& it : _runtime_filter_metrics) { | |||
delete it.second; |
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.
may consider using std::unique_ptr to manage the pointers instead of using the raw one. so the resource deallocation will be as easy as _runtime_filter_metrics.clear()
@mergify backport branch-2.5 branch-3.0 branch-3.1 branch-3.2 branch-3.3 |
✅ Backports have been created
|
…ilter size (StarRocks#46360) Signed-off-by: silverbullet233 <3675229+silverbullet233@users.noreply.github.com>
…ilter size (StarRocks#46360) Signed-off-by: silverbullet233 <3675229+silverbullet233@users.noreply.github.com>
…ilter size (StarRocks#46360) Signed-off-by: silverbullet233 <3675229+silverbullet233@users.noreply.github.com>
…ilter size (StarRocks#46360) Signed-off-by: silverbullet233 <3675229+silverbullet233@users.noreply.github.com>
…ilter size (StarRocks#46360) Signed-off-by: silverbullet233 <3675229+silverbullet233@users.noreply.github.com>
…ilter size (StarRocks#46360) Signed-off-by: silverbullet233 <3675229+silverbullet233@users.noreply.github.com>
…ilter size (StarRocks#46360) Signed-off-by: silverbullet233 <3675229+silverbullet233@users.noreply.github.com>
…ilter size (StarRocks#46360) Signed-off-by: silverbullet233 <3675229+silverbullet233@users.noreply.github.com>
Why I'm doing:
What I'm doing:
Major changes:
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check: