GTGBasic.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
#define GTG_FLAG_PAJE_MULTIPLE_FILES 8
typedef uint8_t gtg_flag_t;
typedef enum traceType{
PAJE,
VITE,
OTF,
TAU
}traceType_t;
void setTraceType (traceType_t type);
traceType_t getTraceType ();
char* getName (int procRk);
int bufferedModeActivated();
trace_return_t initTrace (const char* filename, int rank, gtg_flag_t flags);
trace_return_t endTrace ();
trace_return_t setCompress (int val);
trace_return_t addContType (const char* alias, const char* contType,
const char* name);
trace_return_t addStateType (const char* alias, const char* contType,
const char* name);
trace_return_t addEventType (const char* alias, const char* contType,
const char* name);
trace_return_t addLinkType (const char* alias , const char* name,
const char* contType, const char* srcContType,
const char* destContType);
trace_return_t addVarType (const char* alias , const char* name,
const char* contType);
trace_return_t addEntityValue (const char* alias, const char* entType,
const char* name , gtg_color_t p_color);
trace_return_t addContainer (varPrec time, const char* alias ,
const char* type, const char* container,
const char* name, const char* file);
trace_return_t destroyContainer (varPrec time, const char* name,
const char* type);
trace_return_t setState (varPrec time, const char* type,
const char* cont, const char* val);
trace_return_t pushState (varPrec time, const char* type,
const char* cont, const char* val);
trace_return_t popState (varPrec time, const char* type,
const char* cont);
trace_return_t addEvent (varPrec time, const char* type,
const char* cont, const char* val);
trace_return_t startLink (varPrec time, const char* type,
const char* cont, const char* src,
const char* dest, const char* val,
const char* key);
trace_return_t endLink (varPrec time, const char* type,
const char* cont, const char* src,
const char* dest, const char* val,
const char* key);
trace_return_t 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_ */
initTrace
trace_return_t initTrace(const char *filename, int rank, gtg_flag_t flags)
popState
trace_return_t popState(varPrec time, const char *type, const char *cont)
addVar
trace_return_t addVar(varPrec time, const char *type, const char *cont, varPrec val)
traceType_t
enum traceType traceType_t
AddComment
trace_return_t AddComment(const char *comment)
pushState
trace_return_t pushState(varPrec time, const char *type, const char *cont, const char *val)
subVar
trace_return_t subVar(varPrec time, const char *type, const char *cont, varPrec val)
bufferedModeActivated
int bufferedModeActivated()
startLink
trace_return_t startLink(varPrec time, const char *type, const char *cont, const char *src, const char *dest, const char *val, const char *key)
gtg_flag_t
uint8_t gtg_flag_t
Flags that can be specified to GTG.
Definition GTGBasic.h:56
addVarType
trace_return_t addVarType(const char *alias, const char *name, const char *contType)
setState
trace_return_t setState(varPrec time, const char *type, const char *cont, const char *val)
setCompress
trace_return_t setCompress(int val)
endLink
trace_return_t endLink(varPrec time, const char *type, const char *cont, const char *src, const char *dest, const char *val, const char *key)
setTraceType
void setTraceType(traceType_t type)
addEntityValue
trace_return_t addEntityValue(const char *alias, const char *entType, const char *name, gtg_color_t p_color)
addLinkType
trace_return_t addLinkType(const char *alias, const char *name, const char *contType, const char *srcContType, const char *destContType)
endTrace
trace_return_t endTrace()
traceType
traceType
Definition GTGBasic.h:69
PAJE
@ PAJE
Definition GTGBasic.h:70
TAU
@ TAU
Definition GTGBasic.h:73
OTF
@ OTF
Definition GTGBasic.h:72
VITE
@ VITE
Definition GTGBasic.h:71
setVar
trace_return_t setVar(varPrec time, const char *type, const char *cont, varPrec val)
addContType
trace_return_t addContType(const char *alias, const char *contType, const char *name)
addStateType
trace_return_t addStateType(const char *alias, const char *contType, const char *name)
addEventType
trace_return_t addEventType(const char *alias, const char *contType, const char *name)
destroyContainer
trace_return_t destroyContainer(varPrec time, const char *name, const char *type)
addEvent
trace_return_t addEvent(varPrec time, const char *type, const char *cont, const char *val)
getName
char * getName(int procRk)
addContainer
trace_return_t addContainer(varPrec time, const char *alias, const char *type, const char *container, const char *name, const char *file)
getTraceType
traceType_t getTraceType()
GTGColor.h
This file defines some useful colors to use in entity values for GTG.
GTGTypes.h
trace_return_t
trace_return_t
Definition GTGTypes.h:35
varPrec
double varPrec
Use the double precision type for time and value.
Definition GTGTypes.h:28
gtg_color
This structure defines a color that can be used by GTG.
Definition GTGColor.h:25