summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5d03860)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9196
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
const char *entityType, const char *container,
const char *value)
{
const char *entityType, const char *container,
const char *value)
{
- snprintf(output, len, "%d %lf %s %s %s", eventid, time, entityType,
+ if (time == 0){
+ snprintf(output, len, "%d 0 %s %s %s", eventid, entityType,
+ container, value);
+ }else{
+ snprintf(output, len, "%d %lf %s %s %s", eventid, time, entityType,
}
static void __pajeSetVariable(char *output, int len, int eventid,
double time, const char *entityType,
const char *container, const char *value)
{
}
static void __pajeSetVariable(char *output, int len, int eventid,
double time, const char *entityType,
const char *container, const char *value)
{
- snprintf(output, len, "%d %lf %s %s %s", eventid, time, entityType,
+ if (time == 0){
+ snprintf(output, len, "%d 0 %s %s %s", eventid, entityType,
+ container, value);
+ }else{
+ snprintf(output, len, "%d %lf %s %s %s", eventid, time, entityType,
}
static void __pajeStartLink(char *output, int len, int eventid,
}
static void __pajeStartLink(char *output, int len, int eventid,
void pajeNewEvent(double time, const char *entityType,
const char *container, const char *value)
{
void pajeNewEvent(double time, const char *entityType,
const char *container, const char *value)
{
- fprintf(tracing_file, "%d %lf %s %s %s\n", pajeNewEventId, time,
+ if (time == 0){
+ fprintf(tracing_file, "%d 0 %s %s %s\n", pajeNewEventId,
entityType, container, value);
entityType, container, value);
+ }else{
+ fprintf(tracing_file, "%d %lf %s %s %s\n", pajeNewEventId, time,
+ entityType, container, value);
+ }
}
#endif /* HAVE_TRACING */
}
#endif /* HAVE_TRACING */