ps_thread_stack
Syntax
sys.ps_thread_stack(thread_id, verbose)
Description
ps_thread_stack
is a stored function available with the Sys Schema that, for a given thread_id, returns all statements, stages, and events within the Performance Schema, as a JSON formatted stack.
The boolean verbose argument specifies whether or not to include file:lineno
information in the events.
Examples
SELECT sys.ps_thread_stack(13, FALSE) AS thread_stack\G *************************** 1. row *************************** thread_stack: {"rankdir": "LR","nodesep": "0.10", "stack_created": "2022-03-28 16:01:06", "mysql_version": "10.8.2-MariaDB", "mysql_user": "msandbox@localhost", "events": []}
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.