mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 19:11:46 +01:00
30 lines
1.7 KiB
Text
30 lines
1.7 KiB
Text
|
SELECT * FROM performance_schema.SETUP_INSTRUMENTS
|
||
|
WHERE ENABLED='NO' AND TIMED='NO';
|
||
|
NAME ENABLED TIMED
|
||
|
SELECT * FROM performance_schema.EVENTS_WAITS_CURRENT
|
||
|
WHERE (TIMER_END - TIMER_START != TIMER_WAIT);
|
||
|
THREAD_ID EVENT_ID EVENT_NAME SOURCE TIMER_START TIMER_END TIMER_WAIT SPINS OBJECT_SCHEMA OBJECT_NAME OBJECT_TYPE OBJECT_INSTANCE_BEGIN NESTING_EVENT_ID OPERATION NUMBER_OF_BYTES FLAGS
|
||
|
SELECT * FROM performance_schema.EVENTS_WAITS_HISTORY
|
||
|
WHERE SPINS != NULL;
|
||
|
THREAD_ID EVENT_ID EVENT_NAME SOURCE TIMER_START TIMER_END TIMER_WAIT SPINS OBJECT_SCHEMA OBJECT_NAME OBJECT_TYPE OBJECT_INSTANCE_BEGIN NESTING_EVENT_ID OPERATION NUMBER_OF_BYTES FLAGS
|
||
|
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;
|
||
|
THREAD_ID ID NAME THREAD_ID EVENT_ID EVENT_NAME SOURCE TIMER_START TIMER_END TIMER_WAIT SPINS OBJECT_SCHEMA OBJECT_NAME OBJECT_TYPE OBJECT_INSTANCE_BEGIN NESTING_EVENT_ID OPERATION NUMBER_OF_BYTES FLAGS
|
||
|
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;
|
||
|
THREAD_ID EVENT_ID EVENT_NAME SOURCE TIMER_START TIMER_END TIMER_WAIT SPINS OBJECT_SCHEMA OBJECT_NAME OBJECT_TYPE OBJECT_INSTANCE_BEGIN NESTING_EVENT_ID OPERATION NUMBER_OF_BYTES FLAGS
|
||
|
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;
|