Debian Codegraph @

mysql-test/suite/perfschema/t/start_server_no_thread_inst.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 classes
9 show global variables like "performance_schema_max_thread_classes";
10
11 # Not observable yet
12 # select count(*) > 0 from performance_schema.setup_instruments
13 # where name like "thread/%";
14
15 # Expect no class lost
16 show global status like "performance_schema_thread_classes_lost";
17
18 # Expect no instances
19 show global variables like "performance_schema_max_thread_instances";
20
21 select count(*) from performance_schema.threads;
22
23 # Expect instances lost
24 --disable_warnings
25 select variable_value > 0 from information_schema.global_status
26 where variable_name like 'PERFORMANCE_SCHEMA_THREAD_INSTANCES_LOST';
27 --enable_warnings
28
29