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

feat(hotspot): add a cluster level perf_counter to display hotspot #732

Merged
merged 11 commits into from
May 28, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update
tangyanzhao committed May 25, 2021
commit 00a2d2cf41a784482313165351a50a6125992bfe
11 changes: 6 additions & 5 deletions src/server/hotspot_partition_calculator.cpp
Original file line number Diff line number Diff line change
@@ -151,12 +151,13 @@ void hotspot_partition_calculator::data_analyse()
"performed,in %s",
_app_name.c_str());

std::vector<int> hot_points;
stat_histories_analyse(READ_HOTSPOT_DATA, hot_points);
update_hot_point(READ_HOTSPOT_DATA, hot_points);
std::vector<int> read_hot_points;
stat_histories_analyse(READ_HOTSPOT_DATA, read_hot_points);
update_hot_point(READ_HOTSPOT_DATA, read_hot_points);

stat_histories_analyse(WRITE_HOTSPOT_DATA, hot_points);
update_hot_point(WRITE_HOTSPOT_DATA, hot_points);
std::vector<int> write_hot_points;
stat_histories_analyse(WRITE_HOTSPOT_DATA, write_hot_points);
update_hot_point(WRITE_HOTSPOT_DATA, write_hot_points);

if (!FLAGS_enable_detect_hotkey) {
return;