2011-10-19 21:45:18 +02:00
|
|
|
UPDATE performance_schema.setup_instruments SET TIMED = 'NO';
|
|
|
|
UPDATE performance_schema.setup_instruments SET ENABLED = 'NO';
|
|
|
|
UPDATE performance_schema.setup_timers
|
2010-01-12 02:47:27 +01:00
|
|
|
SET TIMER_NAME = 'NANOSECOND' WHERE NAME = 'Wait';
|
2011-10-19 21:45:18 +02:00
|
|
|
UPDATE performance_schema.setup_timers
|
2010-01-12 02:47:27 +01:00
|
|
|
SET TIMER_NAME = 'CYCLE' WHERE NAME = 'Wait';
|
2011-10-19 21:45:18 +02:00
|
|
|
UPDATE performance_schema.setup_instruments SET TIMED = 'YES';
|
|
|
|
UPDATE performance_schema.setup_instruments SET ENABLED = 'YES'
|
|
|
|
WHERE NAME IN ('wait/io/file/sql/FRM',
|
|
|
|
'thread/sql/Connection',
|
|
|
|
'wait/synch/cond/sql/COND_mdl',
|
|
|
|
'wait/synch/rwlock/sql/LOCK_sys_init_connect',
|
2010-01-12 02:47:27 +01:00
|
|
|
'wait/synch/mutex/sql/LOCK_mdl');
|
2011-10-19 21:45:18 +02:00
|
|
|
UPDATE performance_schema.setup_consumers SET ENABLED = 'NO'
|
2010-01-12 02:47:27 +01:00
|
|
|
WHERE NAME = 'events_waits_history';
|
2011-10-19 21:45:18 +02:00
|
|
|
UPDATE performance_schema.setup_consumers SET ENABLED = 'YES'
|
2010-01-12 02:47:27 +01:00
|
|
|
WHERE NAME = 'events_waits_history';
|