GTGOTF_Basic.h
Go to the documentation of this file.
#ifndef _GTG_OTF_BASIC_H_
#define _GTG_OTF_BASIC_H_
#include "GTGTypes.h"
#include "GTGBasic.h"
#include "GTGOTF_Structs.h"
const otf_color_t OTF_get_color(gtg_color_t color);
trace_return_t OTFInitTrace (const char* filename, gtg_flag_t flags);
trace_return_t OTFSetCompress(int val);
trace_return_t OTFAddContType (const char* alias, const char* contType,
const char* name);
trace_return_t OTFAddStateType (const char* alias, const char* contType,
const char* name);
trace_return_t OTFAddEventType (const char* alias, const char* contType,
const char* name);
trace_return_t OTFAddLinkType (const char* alias , const char* name,
const char* contType, const char* srcContType,
const char* destContType);
trace_return_t OTFAddVarType (const char* alias , const char* name,
const char* contType);
trace_return_t OTFAddEntityValue (const char* alias, const char* entType,
const char* name , const otf_color_t color);
trace_return_t OTFDefineContainer (const char* alias,
const char* type, const char* container,
const char* name, const char* file);
trace_return_t OTFStartContainer (varPrec time, const char* alias ,
const char* type, const char* container,
const char* name, const char* file);
trace_return_t OTFDestroyContainer (varPrec time, const char* name,
const char* type);
trace_return_t OTFSetState (varPrec time, const char* type,
const char* cont, const char* val);
trace_return_t OTFPushState (varPrec time, const char* type,
const char* cont, const char* val);
trace_return_t OTFPopState (varPrec time, const char* type,
const char* cont);
trace_return_t OTFAddEvent (varPrec time, const char* type,
const char* cont, const char* val);
trace_return_t OTFStartLink (varPrec time, const char* type,
const char* src, const char* dest,
const char* val , const char* key);
trace_return_t OTFEndLink (varPrec time, const char* type,
const char* src, const char* dest,
const char* val, const char* key);
trace_return_t OTFSetVar (varPrec time, const char* type,
const char* cont, varPrec val);
trace_return_t OTFAddVar (varPrec time, const char* type,
const char* cont, varPrec val);
trace_return_t OTFSubVar (varPrec time, const char* type,
const char* cont, varPrec val);
trace_return_t OTFAddComment (const char* comment);
trace_return_t OTFEndTrace ();
#endif /* _GTG_OTF_BASIC_H_ */
GTGBasic.h
GTGBasic is a basic interface to generate trace in various formats.
gtg_flag_t
uint8_t gtg_flag_t
Flags that can be specified to GTG.
Definition GTGBasic.h:56
gtg_color_t
struct gtg_color * gtg_color_t
Definition GTGColor.h:31
OTFDefineContainer
trace_return_t OTFDefineContainer(const char *alias, const char *type, const char *container, const char *name, const char *file)
GTGOTF_Structs.h
OTF_Structs gives the global types and functions needed to have the OTF implementation.
otf_color_t
struct otf_color * otf_color_t
Definition GTGOTF_Structs.h:121
GTGTypes.h
OTFStartLink
trace_return_t OTFStartLink(varPrec time, const char *type, const char *src, const char *dest, const char *val, const char *key)
Start a Link.
OTFAddEntityValue
trace_return_t OTFAddEntityValue(const char *alias, const char *entType, const char *name, const otf_color_t color)
Add an Entity Value.
OTF_get_color
const otf_color_t OTF_get_color(gtg_color_t color)
Converts a GTG color into a OTF color.
OTFSubVar
trace_return_t OTFSubVar(varPrec time, const char *type, const char *cont, varPrec val)
Substract a value from a Variable.
OTFAddContType
trace_return_t OTFAddContType(const char *alias, const char *contType, const char *name)
Add a Container Type.
OTFEndLink
trace_return_t OTFEndLink(varPrec time, const char *type, const char *src, const char *dest, const char *val, const char *key)
End a Link.
OTFSetCompress
trace_return_t OTFSetCompress(int val)
Enable trace compression.
OTFSetVar
trace_return_t OTFSetVar(varPrec time, const char *type, const char *cont, varPrec val)
Set a Variable value.
OTFAddComment
trace_return_t OTFAddComment(const char *comment)
Add some Comment in Trace file.
OTFAddEventType
trace_return_t OTFAddEventType(const char *alias, const char *contType, const char *name)
Add an Event Type.
OTFEndTrace
trace_return_t OTFEndTrace()
Finalize an OTF trace.
OTFAddEvent
trace_return_t OTFAddEvent(varPrec time, const char *type, const char *cont, const char *val)
Add an Event.
OTFAddVarType
trace_return_t OTFAddVarType(const char *alias, const char *name, const char *contType)
Add a Variable Type.
OTFSetState
trace_return_t OTFSetState(varPrec time, const char *type, const char *cont, const char *val)
Set the State of a Container.
OTFInitTrace
trace_return_t OTFInitTrace(const char *filename, gtg_flag_t flags)
Initialize an OTF trace.
OTFPopState
trace_return_t OTFPopState(varPrec time, const char *type, const char *cont)
Revert the State of a Container to its previous value.
OTFDestroyContainer
trace_return_t OTFDestroyContainer(varPrec time, const char *name, const char *type)
Destroy a Container.
OTFAddVar
trace_return_t OTFAddVar(varPrec time, const char *type, const char *cont, varPrec val)
Add a value to a Variable.
OTFAddStateType
trace_return_t OTFAddStateType(const char *alias, const char *contType, const char *name)
Add a State Type.
OTFAddLinkType
trace_return_t OTFAddLinkType(const char *alias, const char *name, const char *contType, const char *srcContType, const char *destContType)
Add a Link Type.
OTFPushState
trace_return_t OTFPushState(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.
OTFStartContainer
trace_return_t OTFStartContainer(varPrec time, const char *alias, const char *type, const char *container, const char *name, const char *file)
Start a Container.
trace_return_t
trace_return_t
Define various return values.
Definition GTGTypes.h:35
varPrec
double varPrec
Use the double precision type for time and value.
Definition GTGTypes.h:28