NewMadeleine

Documentation

« back to PM2 home.
nm_trace_gen.h File Reference

Backends for traces generation. More...

#include <stdint.h>
#include "nm_trace.h"
Include dependency graph for nm_trace_gen.h:

Go to the source code of this file.

Data Structures

struct  nm_trace_gen_rgb_s
 

Macros

#define NM_TRACE_GEN_RGB(R, G, B)   ((struct nm_trace_gen_rgb_s){ .r = R, .g = G, .b = B})
 
#define NM_TRACE_GEN_BLACK   NM_TRACE_GEN_RGB(0, 0, 0)
 
#define NM_TRACE_GEN_GREY   NM_TRACE_GEN_RGB(85, 85, 85)
 
#define NM_TRACE_GEN_WHITE   NM_TRACE_GEN_RGB(255, 255, 255)
 
#define NM_TRACE_GEN_RED   NM_TRACE_GEN_RGB(255, 0, 0)
 
#define NM_TRACE_GEN_GREEN   NM_TRACE_GEN_RGB(0, 255, 0)
 
#define NM_TRACE_GEN_BLUE   NM_TRACE_GEN_RGB(0, 0, 255)
 
#define NM_TRACE_GEN_LIGHTBROWN   NM_TRACE_GEN_RGB(170, 130, 130)
 
#define NM_TRACE_GEN_PINK   NM_TRACE_GEN_RGB(255, 0, 255)
 
#define NM_TRACE_GEN_ORANGE   NM_TRACE_GEN_RGB(255, 160, 0)
 
#define NM_TRACE_GEN_YELLOW   NM_TRACE_GEN_RGB(255, 255, 0)
 
#define NM_TRACE_GEN_TEAL   NM_TRACE_GEN_RGB(0, 255, 255)
 
#define NM_TRACE_GEN_PURPLE   NM_TRACE_GEN_RGB(153, 25, 230)
 

Functions

__PUK_SYM_INTERNAL void nm_trace_gen_init (const char *trace_name)
 
__PUK_SYM_INTERNAL void nm_trace_gen_end (double end_time)
 
__PUK_SYM_INTERNAL void nm_trace_gen_comment (const char *p_text)
 
__PUK_SYM_INTERNAL void nm_trace_gen_container_type (const char *p_name, const char *p_short_name, const char *p_parent_type)
 
__PUK_SYM_INTERNAL void nm_trace_gen_container_add (double t, const char *p_name, const char *p_short_name, const char *p_type, const char *p_parent, int leaf)
 
__PUK_SYM_INTERNAL void nm_trace_gen_container_add_string (double t, padico_string_t name, padico_string_t short_name, padico_string_t parent, const char *p_type, int leaf)
 
__PUK_SYM_INTERNAL void nm_trace_gen_link_type (const char *p_name, const char *p_short_name, const char *p_cont_type, const char *p_src_type, const char *p_dest_type)
 
__PUK_SYM_INTERNAL void nm_trace_gen_link_start (double t, const char *p_link_type, const char *p_container, const char *p_src, const char *p_dest, const char *p_value, padico_string_t p_key)
 
__PUK_SYM_INTERNAL void nm_trace_gen_link_end (double t, const char *p_link_type, const char *p_container, const char *p_src, const char *p_dest, const char *p_value, padico_string_t p_key)
 
__PUK_SYM_INTERNAL void nm_trace_gen_state_type (const char *p_name, const char *p_short_name, const char *p_cont_type)
 
__PUK_SYM_INTERNAL void nm_trace_gen_state_set (double t, const char *p_state_type, const char *p_cont_name, const char *p_state_name)
 
__PUK_SYM_INTERNAL void nm_trace_gen_entity_declare (const char *p_name, const char *p_short_name, const char *p_cont_type, struct nm_trace_gen_rgb_s rgb)
 
__PUK_SYM_INTERNAL void nm_trace_gen_var_type (const char *p_name, const char *p_short_name, const char *p_cont_type)
 
__PUK_SYM_INTERNAL void nm_trace_gen_var_set (double t, const char *p_var_name, const char *p_cont_name, int value)
 

Detailed Description

Backends for traces generation.

Definition in file nm_trace_gen.h.

Macro Definition Documentation

◆ NM_TRACE_GEN_BLACK

#define NM_TRACE_GEN_BLACK   NM_TRACE_GEN_RGB(0, 0, 0)

Definition at line 36 of file nm_trace_gen.h.

◆ NM_TRACE_GEN_BLUE

#define NM_TRACE_GEN_BLUE   NM_TRACE_GEN_RGB(0, 0, 255)

Definition at line 41 of file nm_trace_gen.h.

◆ NM_TRACE_GEN_GREEN

#define NM_TRACE_GEN_GREEN   NM_TRACE_GEN_RGB(0, 255, 0)

Definition at line 40 of file nm_trace_gen.h.

◆ NM_TRACE_GEN_GREY

#define NM_TRACE_GEN_GREY   NM_TRACE_GEN_RGB(85, 85, 85)

Definition at line 37 of file nm_trace_gen.h.

◆ NM_TRACE_GEN_LIGHTBROWN

#define NM_TRACE_GEN_LIGHTBROWN   NM_TRACE_GEN_RGB(170, 130, 130)

Definition at line 42 of file nm_trace_gen.h.

◆ NM_TRACE_GEN_ORANGE

#define NM_TRACE_GEN_ORANGE   NM_TRACE_GEN_RGB(255, 160, 0)

Definition at line 44 of file nm_trace_gen.h.

◆ NM_TRACE_GEN_PINK

#define NM_TRACE_GEN_PINK   NM_TRACE_GEN_RGB(255, 0, 255)

Definition at line 43 of file nm_trace_gen.h.

◆ NM_TRACE_GEN_PURPLE

#define NM_TRACE_GEN_PURPLE   NM_TRACE_GEN_RGB(153, 25, 230)

Definition at line 47 of file nm_trace_gen.h.

◆ NM_TRACE_GEN_RED

#define NM_TRACE_GEN_RED   NM_TRACE_GEN_RGB(255, 0, 0)

Definition at line 39 of file nm_trace_gen.h.

◆ NM_TRACE_GEN_RGB

#define NM_TRACE_GEN_RGB (   R,
  G,
 
)    ((struct nm_trace_gen_rgb_s){ .r = R, .g = G, .b = B})

Definition at line 35 of file nm_trace_gen.h.

◆ NM_TRACE_GEN_TEAL

#define NM_TRACE_GEN_TEAL   NM_TRACE_GEN_RGB(0, 255, 255)

Definition at line 46 of file nm_trace_gen.h.

◆ NM_TRACE_GEN_WHITE

#define NM_TRACE_GEN_WHITE   NM_TRACE_GEN_RGB(255, 255, 255)

Definition at line 38 of file nm_trace_gen.h.

◆ NM_TRACE_GEN_YELLOW

#define NM_TRACE_GEN_YELLOW   NM_TRACE_GEN_RGB(255, 255, 0)

Definition at line 45 of file nm_trace_gen.h.

Function Documentation

◆ nm_trace_gen_comment()

__PUK_SYM_INTERNAL void nm_trace_gen_comment ( const char *  p_text)

◆ nm_trace_gen_container_add()

__PUK_SYM_INTERNAL void nm_trace_gen_container_add ( double  t,
const char *  p_name,
const char *  p_short_name,
const char *  p_type,
const char *  p_parent,
int  leaf 
)

◆ nm_trace_gen_container_add_string()

__PUK_SYM_INTERNAL void nm_trace_gen_container_add_string ( double  t,
padico_string_t  name,
padico_string_t  short_name,
padico_string_t  parent,
const char *  p_type,
int  leaf 
)

◆ nm_trace_gen_container_type()

__PUK_SYM_INTERNAL void nm_trace_gen_container_type ( const char *  p_name,
const char *  p_short_name,
const char *  p_parent_type 
)

◆ nm_trace_gen_end()

__PUK_SYM_INTERNAL void nm_trace_gen_end ( double  end_time)

◆ nm_trace_gen_entity_declare()

__PUK_SYM_INTERNAL void nm_trace_gen_entity_declare ( const char *  p_name,
const char *  p_short_name,
const char *  p_cont_type,
struct nm_trace_gen_rgb_s  rgb 
)

◆ nm_trace_gen_init()

__PUK_SYM_INTERNAL void nm_trace_gen_init ( const char *  trace_name)

◆ nm_trace_gen_link_end()

__PUK_SYM_INTERNAL void nm_trace_gen_link_end ( double  t,
const char *  p_link_type,
const char *  p_container,
const char *  p_src,
const char *  p_dest,
const char *  p_value,
padico_string_t  p_key 
)

◆ nm_trace_gen_link_start()

__PUK_SYM_INTERNAL void nm_trace_gen_link_start ( double  t,
const char *  p_link_type,
const char *  p_container,
const char *  p_src,
const char *  p_dest,
const char *  p_value,
padico_string_t  p_key 
)

◆ nm_trace_gen_link_type()

__PUK_SYM_INTERNAL void nm_trace_gen_link_type ( const char *  p_name,
const char *  p_short_name,
const char *  p_cont_type,
const char *  p_src_type,
const char *  p_dest_type 
)

◆ nm_trace_gen_state_set()

__PUK_SYM_INTERNAL void nm_trace_gen_state_set ( double  t,
const char *  p_state_type,
const char *  p_cont_name,
const char *  p_state_name 
)

◆ nm_trace_gen_state_type()

__PUK_SYM_INTERNAL void nm_trace_gen_state_type ( const char *  p_name,
const char *  p_short_name,
const char *  p_cont_type 
)

◆ nm_trace_gen_var_set()

__PUK_SYM_INTERNAL void nm_trace_gen_var_set ( double  t,
const char *  p_var_name,
const char *  p_cont_name,
int  value 
)

◆ nm_trace_gen_var_type()

__PUK_SYM_INTERNAL void nm_trace_gen_var_type ( const char *  p_name,
const char *  p_short_name,
const char *  p_cont_type 
)