summaryrefslogtreecommitdiff
path: root/mysql-test/suite/perfschema/t/start_server_no_memory_class.test
blob: e14e5f39d7ffdb812b0bfb7af9655903cfa74170 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Tests for PERFORMANCE_SCHEMA

--source include/not_embedded.inc
--source include/have_perfschema.inc

--source ../include/start_server_common.inc

# Expect no classes
show global variables like "performance_schema_max_memory_classes";

# Expect builtin memory classes
select name from performance_schema.setup_instruments
  where name like "memory/performance_schema/%"
  order by name;

# Expect no memory classes
select count(*) from performance_schema.setup_instruments
  where name like "memory/%"
    and name not like "memory/performance_schema/%";

# We lost all the classes
--disable_warnings
select variable_value > 0 from information_schema.global_status
  where variable_name like 'PERFORMANCE_SCHEMA_MEMORY_CLASSES_LOST';
--enable_warnings