void __TRACE_surf_check_variable_set_to_zero (double now, const char *variable, const char *resource);
void __TRACE_surf_update_action_state_resource (double now, double delta, const char *type, const char *name, double value);
void __TRACE_surf_set_resource_variable (double date, const char *variable, const char *resource, double value);
-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);
void TRACE_surf_update_action_state_cpu_resource (const char *name, smx_action_t smx_action, double value, double now, double delta);
void TRACE_surf_link_declaration (char *name, double bw, double lat);
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;
xbt_swag_foreach_safe(action, next_action, running_actions) {
#ifdef HAVE_TRACING
- TRACE_surf_update_action_state (action, action->generic_action.data,
- lmm_variable_getvalue(action->variable), "PowerUsed", now-delta, delta);
cpu_Cas01_t x = lmm_constraint_id(lmm_get_cnst_from_var (cpu_maxmin_system, action->variable, 0));
TRACE_surf_update_action_state_cpu_resource (x->generic_resource.name,
(action).variable) * (now -
cpu->last_update));
#ifdef HAVE_TRACING
- TRACE_surf_update_action_state (action, action->generic_lmm_action.generic_action.data,
- lmm_variable_getvalue(GENERIC_LMM_ACTION(action).variable), "PowerUsed", cpu->last_update, now-cpu->last_update);
TRACE_surf_update_action_state_cpu_resource (cpu->generic_resource.name,
action->generic_lmm_action.generic_action.data, lmm_variable_getvalue(GENERIC_LMM_ACTION(action).variable), cpu->last_update, now-cpu->last_update);
#endif
GENERIC_ACTION(action).finish = surf_get_clock();
/* set the remains to 0 due to precision problems when updating the remaining amount */
#ifdef HAVE_TRACING
- TRACE_surf_update_action_state (action, action->generic_lmm_action.generic_action.data,
- lmm_variable_getvalue(GENERIC_LMM_ACTION(action).variable), "PowerUsed", ((cpu_Cas01_im_t)(action->cpu))->last_update, now - ((cpu_Cas01_im_t)(action->cpu))->last_update);
TRACE_surf_update_action_state_cpu_resource (((cpu_Cas01_im_t)(action->cpu))->generic_resource.name,
action->generic_lmm_action.generic_action.data, lmm_variable_getvalue(GENERIC_LMM_ACTION(action).variable), ((cpu_Cas01_im_t)(action->cpu))->last_update, now-((cpu_Cas01_im_t)(action->cpu))->last_update);
#endif
xbt_swag_foreach_safe(action, next_action, running_actions) {
#ifdef HAVE_TRACING
- TRACE_surf_update_action_state (action, action->generic_action.data,
- lmm_variable_getvalue(action->variable), "BandwidthUsed", now-delta, delta);
-
xbt_dynar_t route = used_routing->get_route(action->src, action->dst);
link_CM02_t link;
unsigned int i;
double remain = gtnets_get_flow_rx(action);
#ifdef HAVE_TRACING
- // tracing surf action
- TRACE_surf_update_action_state (action, action->generic_action.data,
- (action->generic_action.remains-remain)/delta, "BandwidthUsed", now-delta, delta);
-
// tracing resource utilization
int src = TRACE_surf_gtnets_get_src (action);
int dst = TRACE_surf_gtnets_get_dst (action);