mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 05:52:27 +01:00
67a48e1a4c
Part V: performance schema implementation
28 lines
1.8 KiB
Text
28 lines
1.8 KiB
Text
select * from performance_schema.EVENTS_WAITS_CURRENT
|
|
where event_name like 'Wait/Synch/%' limit 1;
|
|
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
|
|
# # # # # # # # NULL NULL NULL # NULL # NULL 0
|
|
select * from performance_schema.EVENTS_WAITS_CURRENT
|
|
where event_name='FOO';
|
|
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
|
|
insert into performance_schema.EVENTS_WAITS_CURRENT
|
|
set thread_id='1', event_id=1,
|
|
event_name='FOO', timer_start=1, timer_end=2, timer_wait=3;
|
|
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
|
update performance_schema.EVENTS_WAITS_CURRENT
|
|
set timer_start=12;
|
|
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
|
update performance_schema.EVENTS_WAITS_CURRENT
|
|
set timer_start=12 where thread_id=0;
|
|
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
|
delete from performance_schema.EVENTS_WAITS_CURRENT
|
|
where thread_id=1;
|
|
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
|
delete from performance_schema.EVENTS_WAITS_CURRENT;
|
|
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
|
LOCK TABLES performance_schema.EVENTS_WAITS_CURRENT READ;
|
|
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
|
UNLOCK TABLES;
|
|
LOCK TABLES performance_schema.EVENTS_WAITS_CURRENT WRITE;
|
|
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
|
UNLOCK TABLES;
|