Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] merging instr_variables.c into instr_interface.c (code re-organization)
[simgrid.git] / src / instr / instr_msg_volume.c
index 97b2331..8067d86 100644 (file)
@@ -15,16 +15,16 @@ void TRACE_msg_volume_start(m_task_t task)
   char process_name[200], process_alias[200];
   char task_name[200];
   double volume = 0;
-  if (!IS_TRACING_VOLUME)
+  if (!TRACE_msg_volume_is_enabled())
     return;
 
   /* check if task is traced */
-  if (!IS_TRACED(task))
+  if (!task->category)
     return;
 
   /* check if process is traced */
   process = MSG_process_self();
-  if (!IS_TRACED(process))
+  if (!process->category)
     return;
 
   host = MSG_process_get_host(process);
@@ -44,16 +44,16 @@ void TRACE_msg_volume_finish(m_task_t task)
   char task_name[200];
   m_process_t process = NULL;
   m_host_t host = NULL;
-  if (!IS_TRACING_VOLUME)
+  if (!TRACE_msg_volume_is_enabled())
     return;
 
   /* check if task is traced */
-  if (!IS_TRACED(task))
+  if (!task->category)
     return;
 
   /* check if process is traced */
   process = MSG_process_self();
-  if (!IS_TRACED(process))
+  if (!process->category)
     return;
 
   host = MSG_process_get_host(process);
@@ -65,4 +65,4 @@ void TRACE_msg_volume_finish(m_task_t task)
               process_alias, task_name);
 }
 
-#endif
+#endif /* HAVE_TRACING */