Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Don't store user pointers
[simgrid.git] / src / surf / cpu.c
index 8e5f51f..b977e50 100644 (file)
@@ -67,9 +67,6 @@ static cpu_Cas01_t cpu_new(char *name, double power_peak,
 
   xbt_dict_set(surf_model_resource_set(surf_cpu_model), name, cpu,
                surf_resource_free);
-#ifdef HAVE_TRACING
-  TRACE_surf_host_declaration(name, cpu->core * cpu->power_scale * cpu->power_peak);
-#endif
 
   return cpu;
 }
@@ -217,6 +214,7 @@ static void cpu_update_actions_state(double now, double delta)
                                     lmm_variable_getvalue
                                     (action->variable), now - delta,
                                     delta);
+    TRACE_last_timestamp_to_dump = now-delta;
 #endif
     double_update(&(action->generic_action.remains),
                   lmm_variable_getvalue(action->variable) * delta);