Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] categories may have colors registered in the trace file
[simgrid.git] / examples / msg / tracing / categories.c
index 07d03f6..8a12f81 100644 (file)
@@ -107,11 +107,11 @@ int main(int argc, char *argv[])
     exit(1);
   }
 
-  //declaring user categories
-  TRACE_category("compute");
-  TRACE_category("request");
-  TRACE_category("data");
-  TRACE_category("finalize");
+  //declaring user categories with RGB colors
+  TRACE_category_with_color ("compute", "1 0 0"); //red
+  TRACE_category_with_color ("request", "0 1 0"); //green
+  TRACE_category_with_color ("data", "0 0 1");    //blue
+  TRACE_category_with_color ("finalize", "0 0 0");//black
 
   res = test_all(argv[1], argv[2]);
   MSG_clean();