X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/eb43efb75c723c324af67a0589f4a0e0760d59db..e976375d6d6a84fc29baf99e0b0f3e7ec9d10852:/src/instr/surf_instr.c diff --git a/src/instr/surf_instr.c b/src/instr/surf_instr.c index cca1d54fbb..104aa54629 100644 --- a/src/instr/surf_instr.c +++ b/src/instr/surf_instr.c @@ -108,10 +108,9 @@ void __TRACE_surf_finalize (void) char *variable = xbt_dict_get (last_platform_variables, variablekey); pajeSubVariable (atof(time), variable, resource, value); - //TODO: should remove, but it is causing sigabort - //xbt_dict_remove (last_platform_variables, timekey); - //xbt_dict_remove (last_platform_variables, valuekey); - //xbt_dict_remove (last_platform_variables, variablekey); + xbt_dict_remove (last_platform_variables, timekey); + xbt_dict_remove (last_platform_variables, valuekey); + xbt_dict_remove (last_platform_variables, variablekey); } } } @@ -235,11 +234,6 @@ void __TRACE_surf_set_resource_variable (double date, const char *variable, cons xbt_dict_set (resource_variables, xbt_strdup(key), xbt_strdup(aux), xbt_free); } -void TRACE_surf_update_action_state (void *surf_action, smx_action_t smx_action, - double value, const char *stateValue, double now, double delta) -{ -} - void TRACE_surf_update_action_state_net_resource (const char *name, smx_action_t smx_action, double value, double now, double delta) { if (!IS_TRACING || !IS_TRACED(smx_action)) return; @@ -276,7 +270,7 @@ void TRACE_surf_update_action_state_cpu_resource (const char *name, smx_action_t return; } -void TRACE_surf_net_link_new (char *name, double bw, double lat) +void TRACE_surf_link_declaration (char *name, double bw, double lat) { if (!IS_TRACING) return; //if (IS_TRACING_PLATFORM) pajeCreateContainerWithBandwidthLatency (SIMIX_get_clock(), name, "LINK", "platform", name, bw, lat); @@ -290,7 +284,7 @@ void TRACE_surf_net_link_new (char *name, double bw, double lat) xbt_dict_set (link_latency, xbt_strdup(name), lat_ptr, xbt_free); } -void TRACE_surf_cpu_new (char *name, double power) +void TRACE_surf_host_declaration (char *name, double power) { if (!IS_TRACING) return; if (IS_TRACING_PLATFORM){ @@ -329,7 +323,7 @@ void TRACE_surf_routing_full_parse_end (char *link_name, int src, int dst) } } -void TRACE_surf_cpu_set_power (double date, char *resource, double power) +void TRACE_surf_host_set_power (double date, char *resource, double power) { __TRACE_surf_set_resource_variable (date, "power", resource, power); } @@ -416,7 +410,6 @@ void TRACE_msg_clean (void) __TRACE_surf_finalize(); xbt_dict_cursor_t cursor = NULL; - unsigned int cursor_ar = 0; char *key, *value; /* get all host from host_containers */