Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
setting the type of the task so we can define its color in the swarm
authorschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 21 Apr 2010 13:01:53 +0000 (13:01 +0000)
committerschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 21 Apr 2010 13:01:53 +0000 (13:01 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7633 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/instr/interface.c
src/instr/msg_task_instr.c

index 537fbe6..c8e4196 100644 (file)
@@ -89,6 +89,7 @@ int TRACE_start_with_mask(const char *filename, int mask) {
   if (IS_TRACING_TASKS){
     //tasks grouped by host
     pajeDefineContainerType("TASK", "HOST", "TASK");
   if (IS_TRACING_TASKS){
     //tasks grouped by host
     pajeDefineContainerType("TASK", "HOST", "TASK");
+    pajeDefineStateType("category", "TASK", "category");
     pajeDefineStateType("presence", "TASK", "presence");
   }
 
     pajeDefineStateType("presence", "TASK", "presence");
   }
 
index febb1b6..4f294a8 100644 (file)
@@ -60,6 +60,7 @@ void __TRACE_task_location (m_task_t task)
   //check if task container is already created
   if (!xbt_dict_get_or_null (task_containers, alias)){
     pajeCreateContainer (MSG_get_clock(), alias, "TASK", container, name);
   //check if task container is already created
   if (!xbt_dict_get_or_null (task_containers, alias)){
     pajeCreateContainer (MSG_get_clock(), alias, "TASK", container, name);
+    pajeSetState (MSG_get_clock(), "category", alias, task->category);
     xbt_dict_set (task_containers, xbt_strdup(alias), xbt_strdup("1"), xbt_free);
   }
 }
     xbt_dict_set (task_containers, xbt_strdup(alias), xbt_strdup("1"), xbt_free);
   }
 }