X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e6465cc6a82fb2717d52f24645a2232f3b169a0f..6760cb07d6b57be16928d95339d71e57c4e24f36:/src/instr/msg_process_instr.c?ds=sidebyside diff --git a/src/instr/msg_process_instr.c b/src/instr/msg_process_instr.c index bf67050a1d..86875a41b7 100644 --- a/src/instr/msg_process_instr.c +++ b/src/instr/msg_process_instr.c @@ -1,14 +1,8 @@ -/* - * msg_process_instr.c - * - * Created on: Feb 24, 2010 - * Author: Lucas Schnorr - * License: This program is free software; you can redistribute - * it and/or modify it under the terms of the license - * (GNU LGPL) which comes with this package. - * - * Copyright (c) 2009 The SimGrid team. - */ +/* Copyright (c) 2010. The SimGrid Team. + * All rights reserved. */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ #include "instr/private.h" @@ -23,7 +17,7 @@ void __TRACE_msg_process_init (void) void __TRACE_msg_process_location (m_process_t process) { - if (!IS_TRACING_PROCESSES) return; + if (!(IS_TRACING_PROCESSES || IS_TRACING_VOLUME)) return; char name[200], alias[200]; m_host_t host = MSG_process_get_host (process); @@ -33,7 +27,7 @@ void __TRACE_msg_process_location (m_process_t process) //check if process_alias container is already created if (!xbt_dict_get_or_null (process_containers, alias)){ pajeCreateContainer (MSG_get_clock(), alias, "PROCESS", MSG_host_get_name(host), name); - pajeSetState (MSG_get_clock(), "category", alias, process->category); + 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); } } @@ -76,7 +70,7 @@ void TRACE_msg_set_process_category (m_process_t process, const char *category) */ void TRACE_msg_process_change_host (m_process_t process, m_host_t old_host, m_host_t new_host) { - if (!IS_TRACING_PROCESSES || !IS_TRACED(process)) return; + if (!(IS_TRACING_PROCESSES || IS_TRACING_VOLUME) || !IS_TRACED(process)) return; //disabling presence in old_host (__TRACE_msg_process_not_present) char alias[200];