HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
tt::trace_stack_type Struct Reference

Public Member Functions

int64_t push () noexcept
 
std::pair< int64_t, bool > pop (int64_t parent_id) noexcept
 

Data Fields

int64_t top_trace_id = 0
 
int8_t depth = 0
 
int8_t record_depth = 0
 

Member Function Documentation

◆ pop()

std::pair< int64_t, bool > tt::trace_stack_type::pop ( int64_t parent_id)
inlinenoexcept

pop a trace from the trace stack. Traces are in reality already on the thread's actual stack. This function will update a virtual stack of traces.

Returns
trace_id, The trace that pops should record itself in the log file.

◆ push()

int64_t tt::trace_stack_type::push ( )
inlinenoexcept

Push a trace on the trace stack. Traces are in reality already on the thread's actual stack. This function will update a virtual stack of traces.

Returns
parent_id

Field Documentation

◆ depth

int8_t tt::trace_stack_type::depth = 0

The number of currently active traces on this thread.

◆ record_depth

int8_t tt::trace_stack_type::record_depth = 0

Keeps track of the traces that need to record itself into the log.

◆ top_trace_id

int64_t tt::trace_stack_type::top_trace_id = 0

The trace id of the trace at the top of the thread's stack.


The documentation for this struct was generated from the following file: