A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[trace] tracing a 0 instead of 0.000000 in trace file timestamps
[simgrid.git]
/
src
/
instr
/
instr_paje.c
diff --git
a/src/instr/instr_paje.c
b/src/instr/instr_paje.c
index
351f65d
..
de8945d
100644
(file)
--- a/
src/instr/instr_paje.c
+++ b/
src/instr/instr_paje.c
@@
-203,16
+203,26
@@
static void __pajeSetState(char *output, int len, int eventid, double time,
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,
container, value);
container, value);
+ }
}
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,
container, value);
container, value);
+ }
}
static void __pajeStartLink(char *output, int len, int eventid,
}
static void __pajeStartLink(char *output, int len, int eventid,
@@
-383,8
+393,13
@@
void pajeSubVariable(double time, const char *entityType,
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 */