PDF (A4) - 41.3Mb
Man Pages (TGZ) - 262.8Kb
Man Pages (Zip) - 368.8Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb
Thesetup_threads table lists instrumented thread classes. It exposes thread class names and attributes:
mysql> SELECT * FROM performance_schema.setup_threads\G*************************** 1. row *************************** NAME: thread/performance_schema/setup ENABLED: YES HISTORY: YES PROPERTIES: singleton VOLATILITY: 0DOCUMENTATION: NULL...*************************** 4. row *************************** NAME: thread/sql/main ENABLED: YES HISTORY: YES PROPERTIES: singleton VOLATILITY: 0DOCUMENTATION: NULL*************************** 5. row *************************** NAME: thread/sql/one_connection ENABLED: YES HISTORY: YES PROPERTIES: user VOLATILITY: 0DOCUMENTATION: NULL...*************************** 10. row *************************** NAME: thread/sql/event_scheduler ENABLED: YES HISTORY: YES PROPERTIES: singleton VOLATILITY: 0DOCUMENTATION: NULL Thesetup_threads table has these columns:
NAMEThe instrument name. Thread instruments begin with
thread(for example,thread/sql/parser_serviceorthread/performance_schema/setup).ENABLEDWhether the instrument is enabled. The value is
YESorNO. This column can be modified, although settingENABLEDhas no effect for threads that are already running.For background threads, setting the
ENABLEDvalue controls whetherINSTRUMENTEDis set toYESorNOfor threads that are subsequently created for this instrument and listed in thethreadstable. For foreground threads, this column has no effect; thesetup_actorstable takes precedence.HISTORYWhether to log historical events for the instrument. The value is
YESorNO. This column can be modified, although settingHISTORYhas no effect for threads that are already running.For background threads, setting the
HISTORYvalue controls whetherHISTORYis set toYESorNOfor threads that are subsequently created for this instrument and listed in thethreadstable. For foreground threads, this column has no effect; thesetup_actorstable takes precedence.PROPERTIESThe instrument properties. This column uses the
SETdata type, so multiple flags from the following list can be set per instrument:singleton: The instrument has a single instance. For example, there is only one thread for thethread/sql/maininstrument.user: The instrument is directly related to user workload (as opposed to system workload). For example, threads such asthread/sql/one_connectionexecuting a user session have theuserproperty to differentiate them from system threads.
VOLATILITYThe instrument volatility. This column has the same meaning as in the
setup_instrumentstable. SeeSection 29.12.2.3, “The setup_instruments Table”.DOCUMENTATIONA string describing the instrument purpose. The value is
NULLif no description is available.
Thesetup_threads table has these indexes:
Primary key on (
NAME)
TRUNCATE TABLE is not permitted for thesetup_threads table.
PDF (A4) - 41.3Mb
Man Pages (TGZ) - 262.8Kb
Man Pages (Zip) - 368.8Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb