Generic Trace Generator (GTG)  0.1
Functions
To init the generated trace file(s)

Functions

trace_return_t initTrace (const char *filename, int rank, gtg_flag_t flags)
 Initialize a trace. More...
 
trace_return_t endTrace ()
 Finalize a trace. More...
 
trace_return_t setCompress (int val)
 Enable trace compression (only available for OTF traces). More...
 
trace_return_t addEntityValue (const char *alias, const char *entType, const char *name, gtg_color_t p_color)
 Add an Entity Value. More...
 

Detailed Description

Function Documentation

◆ addEntityValue()

trace_return_t addEntityValue ( const char *  alias,
const char *  entType,
const char *  name,
gtg_color_t  p_color 
)

Add an Entity Value.

Parameters
aliasAlias on the entity value
entTypeType of the entity that can have the value
nameAlternative name of the variable type
p_colorColor of the entity
Returns
TRACE_SUCCESS on success
An error code otherwise

◆ endTrace()

trace_return_t endTrace ( )

Finalize a trace.

Returns
TRACE_SUCCESS on success
An error code otherwise

◆ initTrace()

int initTrace ( const char *  filename,
int  rank,
gtg_flag_t  flags 
)

Initialize a trace.

Parameters
filenameRoot name of the file to create
rankProcess number of the file to create
flagsOne of GTG_FLAG_NONE, GTG_FLAG_USE_MPI, GTG_FLAG_NOTBUF.
Returns
TRACE_SUCCESS on success
An error code otherwise

◆ setCompress()

trace_return_t setCompress ( int  val)

Enable trace compression (only available for OTF traces).

Parameters
val0 means no compression, otherwize the output files will be compressed
Returns
TRACE_SUCCESS on success
An error code otherwise