reactor-c
C Runtime for Lingua Franca
Loading...
Searching...
No Matches
trace_t Struct Reference

This struct holds all the state associated with tracing in a single environment. Each environment which has tracing enabled will have such a struct on its environment struct. More...

#include <trace_impl.h>

Data Fields

trace_record_nodeps_t ** _lf_trace_buffer
 
size_t * _lf_trace_buffer_size
 
size_t _lf_number_of_trace_buffers
 
int _lf_trace_stop
 
FILE * _lf_trace_file
 
char filename [TRACE_MAX_FILENAME_LENGTH]
 
object_description_t _lf_trace_object_descriptions [TRACE_OBJECT_TABLE_SIZE]
 
size_t _lf_trace_object_descriptions_size
 
bool _lf_trace_header_written
 

Detailed Description

This struct holds all the state associated with tracing in a single environment. Each environment which has tracing enabled will have such a struct on its environment struct.

Field Documentation

◆ _lf_number_of_trace_buffers

size_t trace_t::_lf_number_of_trace_buffers

The number of trace buffers allocated when tracing starts.

◆ _lf_trace_buffer

trace_record_nodeps_t** trace_t::_lf_trace_buffer

Array of buffers into which traces are written. When a buffer becomes full, the contents is flushed to the file, which will create a significant pause in the calling thread.

◆ _lf_trace_buffer_size

size_t* trace_t::_lf_trace_buffer_size

◆ _lf_trace_file

FILE* trace_t::_lf_trace_file

The file into which traces are written.

◆ _lf_trace_header_written

bool trace_t::_lf_trace_header_written

Indicator that the trace header information has been written to the file.

◆ _lf_trace_object_descriptions

object_description_t trace_t::_lf_trace_object_descriptions[TRACE_OBJECT_TABLE_SIZE]

Table of pointers to a description of the object.

◆ _lf_trace_object_descriptions_size

size_t trace_t::_lf_trace_object_descriptions_size

◆ _lf_trace_stop

int trace_t::_lf_trace_stop

Marker that tracing is stopping or has stopped.

◆ filename

char trace_t::filename[TRACE_MAX_FILENAME_LENGTH]

The file name where the traces are written


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