Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions views/p_s/memory_by_host.sql
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ SELECT IF(host IS NULL, 'background', host) AS host,
sys.format_bytes(MAX(current_number_of_bytes_used)) AS current_max_alloc,
sys.format_bytes(SUM(sum_number_of_bytes_alloc)) AS total_allocated
FROM performance_schema.memory_summary_by_host_by_event_name
GROUP BY host
GROUP BY IF(host IS NULL, 'background', host)
ORDER BY SUM(current_number_of_bytes_used) DESC;

/*
Expand Down Expand Up @@ -88,5 +88,5 @@ SELECT IF(host IS NULL, 'background', host) AS host,
MAX(current_number_of_bytes_used) AS current_max_alloc,
SUM(sum_number_of_bytes_alloc) AS total_allocated
FROM performance_schema.memory_summary_by_host_by_event_name
GROUP BY host
GROUP BY IF(host IS NULL, 'background', host)
ORDER BY SUM(current_number_of_bytes_used) DESC;
4 changes: 2 additions & 2 deletions views/p_s/memory_by_user.sql
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ SELECT IF(user IS NULL, 'background', user) AS user,
sys.format_bytes(MAX(current_number_of_bytes_used)) AS current_max_alloc,
sys.format_bytes(SUM(sum_number_of_bytes_alloc)) AS total_allocated
FROM performance_schema.memory_summary_by_user_by_event_name
GROUP BY user
GROUP BY IF(user IS NULL, 'background', user)
ORDER BY SUM(current_number_of_bytes_used) DESC;

/*
Expand Down Expand Up @@ -88,5 +88,5 @@ SELECT IF(user IS NULL, 'background', user) AS user,
MAX(current_number_of_bytes_used) AS current_max_alloc,
SUM(sum_number_of_bytes_alloc) AS total_allocated
FROM performance_schema.memory_summary_by_user_by_event_name
GROUP BY user
GROUP BY IF(user IS NULL, 'background', user)
ORDER BY SUM(current_number_of_bytes_used) DESC;