// properly
if (TRACE_needs_platform()) {
simgrid::s4u::on_platform_created.connect(instr_on_platform_created);
- simgrid::s4u::Host::onCreation.connect(instr_host_on_creation);
- simgrid::s4u::Host::onSpeedChange.connect(instr_host_on_speed_change);
+ simgrid::s4u::Host::on_creation.connect(instr_host_on_creation);
++ simgrid::s4u::Host::on_speed_change.connect(instr_host_on_speed_change);
simgrid::s4u::Link::on_creation.connect(instr_link_on_creation);
+ simgrid::s4u::Link::on_bandwidth_change.connect(instr_link_on_bandwidth_change);
}
simgrid::s4u::NetZone::onCreation.connect(instr_netzone_on_creation);
simgrid::s4u::NetZone::onSeal.connect(instr_netzone_on_seal);
}
void Cpu::onSpeedChange() {
- if (TRACE_categorized() || TRACE_uncategorized() || TRACE_platform())
- instr::Container::by_name(get_cname())
- ->get_variable("power")
- ->set_event(surf_get_clock(), coresAmount_ * speed_.scale * speed_.peak);
- s4u::Host::onSpeedChange(*host_);
+ s4u::Host::on_speed_change(*host_);
}
int Cpu::coreCount()