Debian Codegraph @

mysql-test/suite/perfschema/t/start_server_no_memory_class.test

raw
1 # Tests for PERFORMANCE_SCHEMA
2
3 --source include/not_embedded.inc
4 --source include/have_perfschema.inc
5
6 --source ../include/start_server_common.inc
7
8 # Expect no classes
9 show global variables like "performance_schema_max_memory_classes";
10
11 # Expect builtin memory classes
12 select name from performance_schema.setup_instruments
13 where name like "memory/performance_schema/%"
14 order by name;
15
16 # Expect no memory classes
17 select count(*) from performance_schema.setup_instruments
18 where name like "memory/%"
19 and name not like "memory/performance_schema/%";
20
21 # We lost all the classes
22 --disable_warnings
23 select variable_value > 0 from information_schema.global_status
24 where variable_name like 'PERFORMANCE_SCHEMA_MEMORY_CLASSES_LOST';
25 --enable_warnings
26