mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 01:04:19 +01:00
34 lines
1.1 KiB
Text
34 lines
1.1 KiB
Text
--source include/not_embedded.inc
|
|
|
|
SELECT * FROM performance_schema.setup_instruments
|
|
WHERE ENABLED='NO' AND TIMED='NO';
|
|
|
|
SELECT * FROM performance_schema.events_waits_current
|
|
WHERE (TIMER_END - TIMER_START != TIMER_WAIT);
|
|
|
|
SELECT * FROM performance_schema.events_waits_history
|
|
WHERE SPINS != NULL;
|
|
|
|
SELECT * FROM performance_schema.processlist p,
|
|
performance_schema.events_waits_current e
|
|
WHERE p.THREAD_ID = e.THREAD_ID
|
|
AND TIMER_START = 0
|
|
ORDER BY e.EVENT_ID;
|
|
|
|
SELECT * FROM performance_schema.events_waits_current
|
|
WHERE THREAD_ID IN (SELECT THREAD_ID
|
|
FROM performance_schema.processlist
|
|
ORDER BY THREAD_ID)
|
|
AND TIMER_END = 0
|
|
AND TIMER_WAIT != NULL
|
|
ORDER BY EVENT_ID;
|
|
|
|
--disable_result_log
|
|
SELECT SUM(COUNT_READ) AS sum_count_read,
|
|
SUM(COUNT_WRITE) AS sum_count_write,
|
|
SUM(SUM_NUMBER_OF_BYTES_READ) AS sum_num_bytes_read,
|
|
SUM(SUM_NUMBER_OF_BYTES_WRITE) AS sum_num_bytes_write
|
|
FROM performance_schema.file_summary_by_instance
|
|
WHERE FILE_NAME LIKE CONCAT('%', @@tmpdir, '%') ORDER BY NULL;
|
|
--enable_result_log
|
|
|