Generic Trace Generator (GTG)
0.1
|
Functions | |
paje_color_t | Paje_get_color (gtg_color_t p_color) |
Converts a GTG color into a PAJE color. More... | |
trace_return_t | pajeInitTrace (const char *filename, int rank, gtg_flag_t flags, int fmt) |
Initialize a VITE trace ( *.ept) More... | |
char * | pajeGetName (int rk) |
Function to get the name of the file containing all the data for the proc of rank rk. More... | |
trace_return_t | pajeSetCompress (int val) |
Enable trace compression. More... | |
trace_return_t | pajeAddContType (const char *alias, const char *contType, const char *name) |
Add a Container Type. More... | |
trace_return_t | pajeAddStateType (const char *alias, const char *contType, const char *name) |
Add a State Type. More... | |
trace_return_t | pajeAddEventType (const char *alias, const char *contType, const char *name) |
Add an Event Type. More... | |
trace_return_t | pajeAddLinkType (const char *alias, const char *name, const char *contType, const char *srcContType, const char *destContType) |
Add a Link Type. More... | |
trace_return_t | pajeAddVarType (const char *alias, const char *contType, const char *name) |
Add a Variable Type. More... | |
trace_return_t | pajeAddEntityValue (const char *alias, const char *entType, const char *name, const char *color) |
Add an Entity Value. More... | |
trace_return_t | pajeAddContainer (varPrec time, const char *alias, const char *type, const char *container, const char *name, const char *file) |
Add a Container (VITE format). More... | |
trace_return_t | pajeSeqAddContainer (varPrec time, const char *alias, const char *type, const char *container, const char *name) |
Add a Container (PAJE format). More... | |
trace_return_t | pajeDestroyContainer (varPrec time, const char *name, const char *type) |
Destroy a Container. More... | |
trace_return_t | pajeSetState (varPrec time, const char *type, const char *cont, const char *val) |
Set the State of a Container. More... | |
trace_return_t | pajePushState (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. More... | |
trace_return_t | pajePopState (varPrec time, const char *type, const char *cont) |
Revert the State of a Container to its previous value. More... | |
trace_return_t | pajeAddEvent (varPrec time, const char *type, const char *cont, const char *val) |
Add an Event. More... | |
trace_return_t | pajeStartLink (varPrec time, const char *type, const char *cont, const char *src, const char *val, const char *key) |
Start a link. More... | |
trace_return_t | pajeEndLink (varPrec time, const char *type, const char *cont, const char *dest, const char *val, const char *key) |
Start a link. More... | |
trace_return_t | pajeSetVar (varPrec time, const char *type, const char *cont, varPrec val) |
Set a Variable value. More... | |
trace_return_t | pajeAddVar (varPrec time, const char *type, const char *cont, varPrec val) |
Add a value to a Variable. More... | |
trace_return_t | pajeSubVar (varPrec time, const char *type, const char *cont, varPrec val) |
Substract a value from a Variable. More... | |
trace_return_t | pajeAddComment (const char *comment) |
Add some Comment in Trace file. More... | |
trace_return_t | pajeEndTrace () |
Finalize a PAJE trace. More... | |
trace_return_t | viteEndTrace () |
Finalize a VITE trace. More... | |
const paje_color_t Paje_get_color | ( | gtg_color_t | color | ) |
Converts a GTG color into a PAJE color.
color | GTG color to convert |
trace_return_t pajeAddComment | ( | const char * | comment | ) |
Add some Comment in Trace file.
comment | Comment to be added |
trace_return_t pajeAddContainer | ( | varPrec | time, |
const char * | alias, | ||
const char * | type, | ||
const char * | container, | ||
const char * | name, | ||
const char * | file | ||
) |
trace_return_t pajeAddContType | ( | const char * | alias, |
const char * | contType, | ||
const char * | name | ||
) |
Add a Container Type.
alias | Alias on the container |
contType | Type of container |
name | Name of the container type |
trace_return_t pajeAddEntityValue | ( | const char * | alias, |
const char * | entType, | ||
const char * | name, | ||
const char * | color | ||
) |
Add an Entity Value.
alias | Alias on the entity value |
entType | Type of the entity |
name | Name of the variable type |
color | Color of the entity |
trace_return_t pajeAddEvent | ( | varPrec | time, |
const char * | type, | ||
const char * | cont, | ||
const char * | val | ||
) |
Add an Event.
time | Time at which the event happens |
type | Type of the event |
cont | Container in this event |
val | Entity value of the event of the container |
trace_return_t pajeAddEventType | ( | const char * | alias, |
const char * | contType, | ||
const char * | name | ||
) |
Add an Event Type.
alias | Alias on the event type |
contType | Type of container |
name | Name of the event type |
trace_return_t pajeAddLinkType | ( | const char * | alias, |
const char * | name, | ||
const char * | contType, | ||
const char * | srcContType, | ||
const char * | destContType | ||
) |
Add a Link Type.
alias | Alias on the link type |
name | Name of the link type |
contType | Type of container |
srcContType | Type of the source container |
destContType | Type of the destination container |
trace_return_t pajeAddStateType | ( | const char * | alias, |
const char * | contType, | ||
const char * | name | ||
) |
Add a State Type.
alias | Alias on the state type |
contType | Type of container |
name | Name of the state type |
trace_return_t pajeAddVar | ( | varPrec | time, |
const char * | type, | ||
const char * | cont, | ||
varPrec | val | ||
) |
trace_return_t pajeAddVarType | ( | const char * | alias, |
const char * | contType, | ||
const char * | name | ||
) |
Add a Variable Type.
alias | Alias on the variable type |
contType | Type of container |
name | Name of the variable type |
trace_return_t pajeDestroyContainer | ( | varPrec | time, |
const char * | name, | ||
const char * | type | ||
) |
Destroy a Container.
time | Time at which the container is destroyed |
name | Name on the container to destroy |
type | Type of the container |
trace_return_t pajeEndLink | ( | varPrec | time, |
const char * | type, | ||
const char * | cont, | ||
const char * | dest, | ||
const char * | val, | ||
const char * | key | ||
) |
Start a link.
time | Time at which the link starts |
type | Type of the link |
cont | Container parent of the source and destination containers containing the link |
dest | Source container |
val | Value of the link |
key | Key used to match start link with end link |
pajeEndTrace | ( | ) |
Finalize a PAJE trace.
char * pajeGetName | ( | int | rk | ) |
Function to get the name of the file containing all the data for the proc of rank rk.
rk | Rank of the proc you want the filename containing it |
trace_return_t pajeInitTrace | ( | const char * | filename, |
int | rank, | ||
gtg_flag_t | flags, | ||
int | fmt | ||
) |
Initialize a VITE trace ( *.ept)
filename | Root name of the file to create |
rank | Rank of the processor |
flags | One of GTG_FLAG_NONE, GTG_FLAG_USE_MPI, GTG_FLAG_NOTBUF. |
fmt | Format, paje or vite |
trace_return_t pajePopState | ( | varPrec | time, |
const char * | type, | ||
const char * | cont | ||
) |
trace_return_t pajePushState | ( | varPrec | time, |
const char * | type, | ||
const char * | cont, | ||
const char * | val | ||
) |
trace_return_t pajeSeqAddContainer | ( | varPrec | time, |
const char * | alias, | ||
const char * | type, | ||
const char * | container, | ||
const char * | name | ||
) |
trace_return_t pajeSetCompress | ( | int | val | ) |
Enable trace compression.
val | 0 means no compression, otherwize the output files will be compressed. |
trace_return_t pajeSetState | ( | varPrec | time, |
const char * | type, | ||
const char * | cont, | ||
const char * | val | ||
) |
trace_return_t pajeSetVar | ( | varPrec | time, |
const char * | type, | ||
const char * | cont, | ||
varPrec | val | ||
) |
trace_return_t pajeStartLink | ( | varPrec | time, |
const char * | type, | ||
const char * | cont, | ||
const char * | src, | ||
const char * | val, | ||
const char * | key | ||
) |
Start a link.
time | Time at which the link starts |
type | Type of the link |
cont | Container parent of the source and destination containers containing the link |
src | Source container |
val | Value of the link |
key | Key used to match start link with end link |
trace_return_t pajeSubVar | ( | varPrec | time, |
const char * | type, | ||
const char * | cont, | ||
varPrec | val | ||
) |
viteEndTrace | ( | ) |
Finalize a VITE trace.