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
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_ */
popState
trace_return_t popState(varPrec time, const char *type, const char *cont)
Revert the State of a Container to its previous value.
addEvent
trace_return_t addEvent(varPrec time, const char *type, const char *cont, const char *val)
Add an Event.
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)
End a Link.
VITE
Definition: GTGBasic.h:66
varPrec
double varPrec
Use the double precision type for time and value.
Definition: GTGTypes.h:28
addContainer
trace_return_t addContainer(varPrec time, const char *alias, const char *type, const char *container, const char *name, const char *file)
Add a Container.
initTrace
trace_return_t initTrace(const char *filename, int rank, gtg_flag_t flags)
Initialize a trace.
addStateType
trace_return_t addStateType(const char *alias, const char *contType, const char *name)
Add a State Type.
traceType_t
enum traceType traceType_t
gtg_flag_t
uint8_t gtg_flag_t
Flags that can be specified to GTG.
Definition: GTG_EZTrace.h:51
endTrace
trace_return_t endTrace()
Finalize a trace.
addLinkType
trace_return_t addLinkType(const char *alias, const char *name, const char *contType, const char *srcContType, const char *destContType)
Add a Link Type.
pushState
trace_return_t pushState(varPrec time, const char *type, const char *cont, const char *val)
Save the current State on a stack and change the State of a Container.
GTGTypes.h
subVar
trace_return_t subVar(varPrec time, const char *type, const char *cont, varPrec val)
trace_return_t
trace_return_t
Define various return values.
Definition: GTGTypes.h:35
addEventType
trace_return_t addEventType(const char *alias, const char *contType, const char *name)
Add an Event Type.
addEntityValue
trace_return_t addEntityValue(const char *alias, const char *entType, const char *name, gtg_color_t p_color)
Add an Entity Value.
OTF
Definition: GTGBasic.h:67
setCompress
trace_return_t setCompress(int val)
Enable trace compression (only available for OTF traces).
PAJE
Definition: GTGBasic.h:65
setVar
trace_return_t setVar(varPrec time, const char *type, const char *cont, varPrec val)
Set a Variable value.
GTGColor.h
This file defines some useful colors to use in entity values for GTG.
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)
Start a Link.
gtg_color
This structure defines a color that can be used by GTG.
Definition: GTGColor.h:25
setState
trace_return_t setState(varPrec time, const char *type, const char *cont, const char *val)
Set the State of a Container.
setTraceType
void setTraceType(traceType_t type)
Set the type of output trace.
gtg_flag_t
uint8_t gtg_flag_t
Flags that can be specified to GTG.
Definition: GTGBasic.h:51
addVarType
trace_return_t addVarType(const char *alias, const char *name, const char *contType)
Add a Variable Type.
destroyContainer
trace_return_t destroyContainer(varPrec time, const char *name, const char *type)
Destroy a Container.
addContType
trace_return_t addContType(const char *alias, const char *contType, const char *name)
Add a Container Type.
getName
char * getName(int procRk)
To get the name of the file to give to the addCont function for processors.
getTraceType
traceType_t getTraceType()
Get the type of the output trace.
traceType_t
enum traceType traceType_t
bufferedModeActivated
int bufferedModeActivated()
Check wether the buffered-mode is activated.
traceType
traceType
The type of the output trace.
Definition: GTG_EZTrace.h:64
TAU
Definition: GTGBasic.h:68
addVar
trace_return_t addVar(varPrec time, const char *type, const char *cont, varPrec val)
AddComment
trace_return_t AddComment(const char *comment)