From 2b6a0c35228d6937e54101056d046cdd25f4de35 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 12 Sep 2016 16:43:20 +0200 Subject: [PATCH] Adding Comment with sys request --- mysqltuner.pl | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/mysqltuner.pl b/mysqltuner.pl index 5e3984b..0cb2fe9 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -3132,7 +3132,7 @@ sub get_pf_memory { return 0 unless defined $myvar{'performance_schema'}; return 0 if $myvar{'performance_schema'} eq 'OFF'; - my @infoPFSMemory = grep /performance_schema.memory/, + my @infoaMemory = grep /performance_schema.memory/, select_array("SHOW ENGINE PERFORMANCE_SCHEMA STATUS"); return 0 if scalar(@infoPFSMemory) == 0; $infoPFSMemory[0] =~ s/.*\s+(\d+)$/$1/g; @@ -3161,6 +3161,16 @@ sub mysqsl_pfs { return; } + #*High Cost SQL statements + #select * from sys.`x$statement_analysis` + #* Top 5% slower queries + #select * from sys.`x$statements_with_runtimes_in_95th_percentile` + #*Use temporary tables + #select * from sys.`statements_with_temp_tables` + #*Unused Indexes + #select * from sys.`schema_unused_indexes` + #* Full table scans select * from sys.`schema_tables_with_full_table_scans` + } # Recommendations for Ariadb