X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f91935dd64073af1ce54dfbe930c3991d45eafe2..b60aef4e2fea329ccaf96986006bdded72a61113:/src/instr/instr_smx.c diff --git a/src/instr/instr_smx.c b/src/instr/instr_smx.c index 75b8b3bcc7..c9c0bb9b0b 100644 --- a/src/instr/instr_smx.c +++ b/src/instr/instr_smx.c @@ -10,44 +10,22 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(instr_simix, instr, "Tracing Simix"); -static long long int counter = 0; /* to uniquely identify simix actions */ - void TRACE_smx_host_execute(smx_action_t act) { - if (!TRACE_is_active()) - return; - - act->counter = counter++; - char *category = TRACE_category_get(SIMIX_process_self()); - if (category) { - act->category = xbt_new(char, strlen(category) + 1); - strncpy(act->category, category, strlen(category) + 1); - } - TRACE_surf_resource_utilization_start(act); + if (!TRACE_is_active()) return; + return; } void TRACE_smx_action_communicate(smx_action_t act, smx_process_t proc) { - if (!TRACE_is_active()) - return; - - act->counter = counter++; - char *category = TRACE_category_get(proc); - if (category) { - act->category = xbt_strdup(category); - } - TRACE_surf_resource_utilization_start(act); + if (!TRACE_is_active()) return; + return; } void TRACE_smx_action_destroy(smx_action_t act) { - if (!TRACE_is_active()) - return; - - if (act->category) { - xbt_free(act->category); - } - TRACE_surf_resource_utilization_end(act); + if (!TRACE_is_active()) return; + return; } #endif /* HAVE_TRACING */