mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
5.6.17
This commit is contained in:
23
mysql-test/suite/perfschema/include/disable_instruments.inc
Normal file
23
mysql-test/suite/perfschema/include/disable_instruments.inc
Normal 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;
|
||||
|
||||
|
23
mysql-test/suite/perfschema/include/enable_instruments.inc
Normal file
23
mysql-test/suite/perfschema/include/enable_instruments.inc
Normal 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;
|
||||
|
||||
|
@ -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');
|
||||
|
||||
|
@ -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
|
||||
|
@ -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%";
|
||||
|
||||
|
Reference in New Issue
Block a user