ps_thread_stack
This function returns a JSON-formatted stack trace of all statements, stages, and events for a given thread, useful for deep diagnostics.
Syntax
sys.ps_thread_stack(thread_id, verbose)Description
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": []}Last updated
Was this helpful?

