Debian Codegraph @

mysql-test/suite/perfschema_stress/t/read.test

raw
1 # The include statement below is a temp one for tests that are yet to
2 #be ported to run with InnoDB,
3 #but needs to be kept for tests that would need MyISAM in future.
4 --source include/force_myisam_default.inc
5
6 --source include/not_embedded.inc
7 --source include/have_perfschema.inc
8
9 SELECT * FROM performance_schema.setup_instruments
10 WHERE ENABLED='NO' AND TIMED='NO';
11
12 SELECT * FROM performance_schema.events_waits_current
13 WHERE (TIMER_END - TIMER_START != TIMER_WAIT);
14
15 SELECT * FROM performance_schema.events_waits_history
16 WHERE SPINS != NULL;
17
18 SELECT * FROM performance_schema.processlist p,
19 performance_schema.events_waits_current e
20 WHERE p.THREAD_ID = e.THREAD_ID
21 AND TIMER_START = 0
22 ORDER BY e.EVENT_ID;
23
24 SELECT * FROM performance_schema.events_waits_current
25 WHERE THREAD_ID IN (SELECT THREAD_ID
26 FROM performance_schema.processlist
27 ORDER BY THREAD_ID)
28 AND TIMER_END = 0
29 AND TIMER_WAIT != NULL
30 ORDER BY EVENT_ID;
31
32 --disable_result_log
33 SELECT SUM(COUNT_READ) AS sum_count_read,
34 SUM(COUNT_WRITE) AS sum_count_write,
35 SUM(SUM_NUMBER_OF_BYTES_READ) AS sum_num_bytes_read,
36 SUM(SUM_NUMBER_OF_BYTES_WRITE) AS sum_num_bytes_write
37 FROM performance_schema.file_summary_by_instance
38 WHERE FILE_NAME LIKE CONCAT('%', @@tmpdir, '%') ORDER BY NULL;
39 --enable_result_log
40