Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
new tracing/buffer configuration option, default to 0
[simgrid.git] / src / instr / instr_paje_trace.c
index d2c4026..4d4f7ba 100644 (file)
@@ -331,6 +331,11 @@ void TRACE_paje_create_header(void)
 /* internal do the instrumentation module */
 static void insert_into_buffer (paje_event_t tbi)
 {
+  if (TRACE_buffer() == 0){
+    tbi->print (tbi);
+    tbi->free (tbi);
+    return;
+  }
   XBT_DEBUG("%s: insert event_type=%d, timestamp=%f, buffersize=%ld)", __FUNCTION__, tbi->event_type, tbi->timestamp, xbt_dynar_length(buffer));
 
   unsigned int i;