From: schnorr Date: Wed, 21 Apr 2010 13:12:41 +0000 (+0000) Subject: set the category for process containers also X-Git-Tag: SVN~107 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d4f8367c88d5c7eee04d5ad8102143f3a351d9bf set the category for process containers also git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7634 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/instr/interface.c b/src/instr/interface.c index c8e4196af9..3770cdeda9 100644 --- a/src/instr/interface.c +++ b/src/instr/interface.c @@ -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"); } diff --git a/src/instr/msg_process_instr.c b/src/instr/msg_process_instr.c index 2b3bfe14e8..771003289a 100644 --- a/src/instr/msg_process_instr.c +++ b/src/instr/msg_process_instr.c @@ -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{