GTG_EZTrace.h
Go to the documentation of this file.
#ifndef _GTG_BASIC_H_
#define _GTG_BASIC_H_
#include <stdlib.h>
#include <string.h>
#include "GTGColor.h"
#include "GTGTypes.h"
#define GTG_FLAG_NONE 0
#define GTG_FLAG_USE_MPI 1
#define GTG_FLAG_NOTBUF 2
#define GTG_FLAG_OUTOFORDER 4
typedef uint8_t gtg_flag_t;
typedef enum traceType{
PAJE,
VITE,
OTF,
TAU
}traceType_t;
void gtg_setTraceType (traceType_t type);
traceType_t gtg_getTraceType ();
char* gtg_getName (int procRk);
int gtg_bufferedModeActivated();
trace_return_t gtg_initTrace (const char* filename, int rank, gtg_flag_t flags);
trace_return_t gtg_endTrace ();
trace_return_t gtg_setCompress (int val);
trace_return_t gtg_addContType (const char* alias, const char* contType,
const char* name);
trace_return_t gtg_addStateType (const char* alias, const char* contType,
const char* name);
trace_return_t gtg_addEventType (const char* alias, const char* contType,
const char* name);
trace_return_t gtg_addLinkType (const char* alias , const char* name,
const char* contType, const char* srcContType,
const char* destContType);
trace_return_t gtg_addVarType (const char* alias , const char* name,
const char* contType);
trace_return_t gtg_addEntityValue (const char* alias, const char* entType,
const char* name , gtg_color_t p_color);
trace_return_t gtg_addContainer (varPrec time, const char* alias ,
const char* type, const char* container,
const char* name, const char* file);
trace_return_t gtg_destroyContainer (varPrec time, const char* name,
const char* type);
trace_return_t gtg_setState (varPrec time, const char* type,
const char* cont, const char* val);
trace_return_t gtg_pushState (varPrec time, const char* type,
const char* cont, const char* val);
trace_return_t gtg_popState (varPrec time, const char* type,
const char* cont);
trace_return_t gtg_addEvent (varPrec time, const char* type,
const char* cont, const char* val);
trace_return_t gtg_startLink (varPrec time, const char* type,
const char* cont, const char* src,
const char* dest, const char* val,
const char* key);
trace_return_t gtg_endLink (varPrec time, const char* type,
const char* cont, const char* src,
const char* dest, const char* val,
const char* key);
trace_return_t gtg_setVar (varPrec time, const char* type,
const char* cont, varPrec val);
trace_return_t addVar (varPrec time, const char* type,
const char* cont, varPrec val);
trace_return_t subVar (varPrec time, const char* type,
const char* cont, varPrec val);
trace_return_t AddComment (const char* comment);
#endif /* _GTG_BASIC_H_ */
gtg_startLink
trace_return_t gtg_startLink(varPrec time, const char *type, const char *cont, const char *src, const char *dest, const char *val, const char *key)
gtg_endLink
trace_return_t gtg_endLink(varPrec time, const char *type, const char *cont, const char *src, const char *dest, const char *val, const char *key)
gtg_addContType
trace_return_t gtg_addContType(const char *alias, const char *contType, const char *name)
gtg_pushState
trace_return_t gtg_pushState(varPrec time, const char *type, const char *cont, const char *val)
varPrec
double varPrec
Use the double precision type for time and value.
Definition: GTGTypes.h:28
gtg_flag_t
uint8_t gtg_flag_t
Flags that can be specified to GTG.
Definition: GTG_EZTrace.h:51
gtg_addContainer
trace_return_t gtg_addContainer(varPrec time, const char *alias, const char *type, const char *container, const char *name, const char *file)
VITE
Definition: GTG_EZTrace.h:66
gtg_initTrace
trace_return_t gtg_initTrace(const char *filename, int rank, gtg_flag_t flags)
gtg_addVarType
trace_return_t gtg_addVarType(const char *alias, const char *name, const char *contType)
addVar
trace_return_t addVar(varPrec time, const char *type, const char *cont, varPrec val)
Add a value to a Variable.
GTGTypes.h
trace_return_t
trace_return_t
Define various return values.
Definition: GTGTypes.h:35
gtg_popState
trace_return_t gtg_popState(varPrec time, const char *type, const char *cont)
gtg_endTrace
trace_return_t gtg_endTrace()
gtg_bufferedModeActivated
int gtg_bufferedModeActivated()
gtg_addEntityValue
trace_return_t gtg_addEntityValue(const char *alias, const char *entType, const char *name, gtg_color_t p_color)
gtg_getName
char * gtg_getName(int procRk)
PAJE
Definition: GTG_EZTrace.h:65
gtg_setState
trace_return_t gtg_setState(varPrec time, const char *type, const char *cont, const char *val)
gtg_setTraceType
void gtg_setTraceType(traceType_t type)
AddComment
trace_return_t AddComment(const char *comment)
Add some Comment in Trace file.
gtg_addEvent
trace_return_t gtg_addEvent(varPrec time, const char *type, const char *cont, const char *val)
gtg_destroyContainer
trace_return_t gtg_destroyContainer(varPrec time, const char *name, const char *type)
GTGColor.h
This file defines some useful colors to use in entity values for GTG.
gtg_color
This structure defines a color that can be used by GTG.
Definition: GTGColor.h:25
OTF
Definition: GTG_EZTrace.h:67
subVar
trace_return_t subVar(varPrec time, const char *type, const char *cont, varPrec val)
Substract a value from a Variable.
gtg_addEventType
trace_return_t gtg_addEventType(const char *alias, const char *contType, const char *name)
gtg_setCompress
trace_return_t gtg_setCompress(int val)
gtg_addLinkType
trace_return_t gtg_addLinkType(const char *alias, const char *name, const char *contType, const char *srcContType, const char *destContType)
TAU
Definition: GTG_EZTrace.h:68
gtg_addStateType
trace_return_t gtg_addStateType(const char *alias, const char *contType, const char *name)
traceType_t
enum traceType traceType_t
gtg_getTraceType
traceType_t gtg_getTraceType()
traceType
traceType
The type of the output trace.
Definition: GTG_EZTrace.h:64
gtg_setVar
trace_return_t gtg_setVar(varPrec time, const char *type, const char *cont, varPrec val)