Debian Codegraph @

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

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