MySQL 9.1.0
Source Code Documentation
optimizer_trace.h File Reference
#include <array>
#include <cassert>
#include <deque>
#include <memory>
#include <ostream>
#include "sql/opt_trace_context.h"
#include "sql/sql_lex.h"

Go to the source code of this file.

Classes

class  TraceBuffer
 This class is used for storing unstructured optimizer trace text (as used by the Hypergraph optimizer). More...
 
class  UnstructuredTrace
 Trace in the form of plain text (i.e. More...
 

Functions

std::ostream & Trace (THD *thd)
 Fetch the ostream that we write optimizer trace into. More...
 
bool TraceStarted (THD *thd)
 

Function Documentation

◆ Trace()

std::ostream & Trace ( THD thd)
inline

Fetch the ostream that we write optimizer trace into.

◆ TraceStarted()

bool TraceStarted ( THD thd)
inline
Returns
'true' if unstructured optimizer trace (as used by Hypergraph) is started.