Documentation Home
MySQL 5.7 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 35.1Mb
PDF (A4) - 35.2Mb
Man Pages (TGZ) - 256.4Kb
Man Pages (Zip) - 361.2Kb
Info (Gzip) - 3.4Mb
Info (Zip) - 3.4Mb
Excerpts from this Manual

25.12.2.5 The setup_timers Table

Thesetup_timers table shows the currently selected event timers:

mysql> SELECT * FROM performance_schema.setup_timers;+-------------+-------------+| NAME        | TIMER_NAME  |+-------------+-------------+| idle        | MICROSECOND || wait        | CYCLE       || stage       | NANOSECOND  || statement   | NANOSECOND  || transaction | NANOSECOND  |+-------------+-------------+
Note

As of MySQL 5.7.21, the Performance Schemasetup_timers table is deprecated and is removed in MySQL 8.0, as is theTICKS row in theperformance_timers table.

Thesetup_timers.TIMER_NAME value can be changed to select a different timer. The value can be any of the values in theperformance_timers.TIMER_NAME column. For an explanation of how event timing occurs, seeSection 25.4.1, “Performance Schema Event Timing”.

Modifications to thesetup_timers table affect monitoring immediately. Events already in progress may use the original timer for the begin time and the new timer for the end time. To avoid unpredictable results after you make timer changes, useTRUNCATE TABLE to reset Performance Schema statistics.

Thesetup_timers table has these columns:

  • NAME

    The type of instrument the timer is used for.

  • TIMER_NAME

    The timer that applies to the instrument type. This column can be modified.

TRUNCATE TABLE is not permitted for thesetup_timers table.