42#define _LF_TRACE_FAILURE(trace_file) \
44 fprintf(stderr, "ERROR: Access to trace file failed.\n"); \
51#define BUFFER_SIZE 1024
54extern trace_record_t
trace[];
97FILE*
open_file(
const char* path,
const char* mode);
Definitions for the C target of Lingua Franca shared by threaded and unthreaded versions.
int64_t instant_t
Definition tag.h:63
FILE * open_file(const char *path, const char *mode)
Open the specified file for reading or writing. This function records the file for closing at termina...
Definition trace_util.c:110
char * get_object_description(void *reactor, int *index)
Definition trace_util.c:139
instant_t start_time
Definition tag.c:33
FILE * output_file
Definition trace_to_chrome.c:53
void usage()
Definition trace_to_chrome.c:58
object_description_t * object_table
Definition trace_util.c:55
FILE * trace_file
Definition trace_to_chrome.c:50
int read_trace()
Definition trace_util.c:272
int object_table_size
Definition trace_util.c:56
size_t read_header()
Definition trace_util.c:202
char * root_name(const char *path)
Return the root file name from the given path. Given a path to a file, this function returns a dynami...
Definition trace_util.c:89
char * get_trigger_name(void *trigger, int *index)
Definition trace_util.c:164
char * top_level
Definition trace_util.c:51
trace_record_t trace[]
Definition trace_util.c:45
FILE * summary_file
Definition trace_to_csv.c:50
void print_table()
Definition trace_util.c:183
const char * trace_event_names[]