1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00
This commit is contained in:
Sergei Golubchik
2014-05-07 10:04:30 +02:00
parent 7226287c06
commit 04bce7b569
208 changed files with 3026 additions and 1138 deletions

View File

@ -0,0 +1,23 @@
# Tests for the performance schema
# ==========================================
# HELPER include/disable_instruments
# ==========================================
#
# ==== Usage ====
#
# 1. Define the instrument to be disabled/enabled:
#
# let $pfs_instrument=<instrument>
#
# Where <instrument> is the instrument name with or without wildcards, e.g.
#
# let $pfs_instrument='%statement/sql%'
#
--disable_query_log ONCE
eval update performance_schema.setup_instruments
set enabled='no', timed='no'
where name like $pfs_instrument;

View File

@ -0,0 +1,23 @@
# Tests for the performance schema
# ==========================================
# HELPER include/enable_instruments
# ==========================================
#
# ==== Usage ====
#
# 1. Define the instrument to be enabled/disabled:
#
# let $pfs_instrument=<instrument>
#
# Where <instrument> is the instrument name with or without wildcards, e.g.
#
# let $pfs_instrument='%statement/sql%'
#
--disable_query_log ONCE
eval update performance_schema.setup_instruments
set enabled='yes', timed='yes'
where name like $pfs_instrument;

View File

@ -123,8 +123,8 @@ update performance_schema.setup_instruments set enabled='YES', timed='YES'
update performance_schema.setup_instruments set enabled='YES', timed='YES'
where name in ('statement/sql/select',
'statement/sql/insert',
'statement/com/',
'statement/com/Query',
'statement/abstract/new_packet',
'statement/abstract/Query',
'statement/com/Quit',
'statement/com/error');

View File

@ -0,0 +1,15 @@
# Tests for the performance schema
# ==========================================
# HELPER include/rpl_truncate_statements.inc
# ==========================================
--disable_query_log
update performance_schema.setup_instruments set enabled='no', timed='no' where name like '%statement/%';
truncate table performance_schema.events_waits_history_long;
truncate table performance_schema.events_statements_summary_by_digest;
truncate table performance_schema.events_statements_history;
truncate table performance_schema.events_statements_history_long;
update performance_schema.setup_instruments set enabled='yes', timed='yes' where name like '%statement/%';
--enable_query_log

View File

@ -2,8 +2,8 @@
show variables like "table_definition_cache";
show variables like "table_open_cache";
show variables like "max_connections";
# Results vary by platform:
# show variables like "open_files_limit";
# open_files_limit depends on OS configuration (ulimit -n)
#show variables like "open_files_limit";
show variables like "%performance_schema%";
show status like "%performance_schema%";