mariadb/mysql-test/suite/perfschema/t/statement_digest_consumers2.test
Sergei Golubchik d74414399d perfschema 5.6.10 initial commit.
10.0 files
2014-05-06 23:20:50 +02:00

37 lines
1.3 KiB
Text

# ----------------------------------------------------
# Tests for the performance schema statement Digests.
# ----------------------------------------------------
# Test case to show behavior of statements digest in combination of different
# consumers enabled/disabled
--source include/not_embedded.inc
--source include/have_perfschema.inc
# Initial Setup for Digest
--source ../include/digest_setup.inc
# -----------------------------------------
# Consumer State |
# -----------------------------------------
# statements_digest Enabled |
# events_statement_current Disabled |
# global_implementation Disabled ? |
# thread_implementation Disabled ? |
# -----------------------------------------
SELECT * FROM performance_schema.setup_consumers;
TRUNCATE TABLE performance_schema.events_statements_summary_by_digest;
# Executing queries
--source ../include/digest_execution.inc
--echo ####################################
--echo # QUERYING PS STATEMENT DIGEST
--echo ####################################
SELECT schema_name, digest, digest_text, count_star FROM performance_schema.events_statements_summary_by_digest;
SELECT digest, digest_text FROM performance_schema.events_statements_current;
# Cleanup for Digest
--source ../include/digest_cleanup.inc