Rechercher dans le manuel MySQL
27.4.4.23 The ps_trace_thread() Procedure
Dumps all Performance Schema data for an instrumented thread
to a .dot
formatted graph file (for the
DOT graph description language). Each result set returned from
the procedure should be used for a complete graph.
This procedure disables binary logging during its execution by
manipulating the session value of the
sql_log_bin
system variable.
That is a restricted operation, so the procedure requires
privileges sufficient to set restricted session variables. See
Section 5.1.9.1, “System Variable Privileges”.
Parameters
in_thread_id INT
: The thread to trace.in_outfile VARCHAR(255)
: The name to use for the.dot
output file.in_max_runtime DECIMAL(20,2)
: The maximum number of seconds (which can be fractional) to collect data. UseNULL
to collect data for the default of 60 seconds.in_interval DECIMAL(20,2)
: The number of seconds (which can be fractional) to sleep between data collections. UseNULL
to sleep for the default of 1 second.in_start_fresh BOOLEAN
: Whether to reset all Performance Schema data before tracing.in_auto_setup BOOLEAN
: Whether to disable all other threads and enable all instruments and consumers. This also resets the settings at the end of the run.in_debug BOOLEAN
: Whether to includefile:lineno
information in the graph.
- +-------------------+
- | summary |
- +-------------------+
- | Disabled 1 thread |
- +-------------------+
- +---------------------------------------------+
- | Info |
- +---------------------------------------------+
- +---------------------------------------------+
- +-----------------------------------------------------------+
- | Info |
- +-----------------------------------------------------------+
- +-----------------------------------------------------------+
- +-------------------------------------------------------------------+
- +-------------------------------------------------------------------+
- | dot -Tpdf -o /tmp/stack_25.pdf /tmp/stack-2014-02-16-21:18:41.dot |
- +-------------------------------------------------------------------+
- +-------------------------------------------------------------------+
- +-------------------------------------------------------------------+
- | dot -Tpng -o /tmp/stack_25.png /tmp/stack-2014-02-16-21:18:41.dot |
- +-------------------------------------------------------------------+
- +------------------+
- | summary |
- +------------------+
- | Enabled 1 thread |
- +------------------+
Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-sys-ps-trace-thread.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.