MySQL 8.4 Release Notes
请参阅文件 sql/opt_trace*,从 sql/opt_trace.h 开始。通过创建 Opt_trace_start 的实例启动跟踪;通过创建 Opt_trace_object 和 Opt_trace_array 的实例,以及使用这些类的 add() 方法,将信息添加到此跟踪中。See the files sql/opt_trace*, starting with
sql/opt_trace.h. A trace is started by
creating an instance of Opt_trace_start;
information is added to this trace by creating instances of
Opt_trace_object and
Opt_trace_array, and by using the
add() methods of these classes.