Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
set the category for process containers also
authorschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 21 Apr 2010 13:12:41 +0000 (13:12 +0000)
committerschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 21 Apr 2010 13:12:41 +0000 (13:12 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7634 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/instr/interface.c
src/instr/msg_process_instr.c

index c8e4196..3770cde 100644 (file)
@@ -83,6 +83,7 @@ int TRACE_start_with_mask(const char *filename, int mask) {
   if (IS_TRACING_PROCESSES){
     //processes grouped by host
     pajeDefineContainerType("PROCESS", "HOST", "PROCESS");
+    pajeDefineStateType("category", "PROCESS", "category");
     pajeDefineStateType("presence", "PROCESS", "presence");
   }
 
index 2b3bfe1..7710032 100644 (file)
@@ -33,6 +33,7 @@ int __TRACE_msg_process_location (m_process_t process)
   if (!xbt_dict_get_or_null (process_containers, alias)){
     if (IS_TRACING_PROCESSES) pajeCreateContainer (MSG_get_clock(), alias, "PROCESS", MSG_host_get_name(host), name);
     if (IS_TRACING_PROCESSES) pajePushState (MSG_get_clock(), "presence", alias, "presence");
+    if (IS_TRACING_PROCESSES) pajeSetState (MSG_get_clock(), "category", alias, process->category);
     xbt_dict_set (process_containers, xbt_strdup(alias), xbt_strdup("1"), xbt_free);
     return 0;
   }else{