- xbt_assert(traces_set_list.find(elm.first) != traces_set_list.end(), "Trace %s undefined", elm.first.c_str());
- simgrid::kernel::profile::Profile* profile = traces_set_list.at(elm.first);
-
- simgrid::s4u::Host* host = simgrid::s4u::Host::by_name_or_null(elm.second);
- xbt_assert(host, "Host %s undefined", elm.second.c_str());
- simgrid::kernel::resource::Cpu* cpu = host->pimpl_cpu;
+ surf_parse_assert(traces_set_list.find(elm.first) != traces_set_list.end(), std::string("<trace_connect kind=\"HOST_AVAIL\">: Trace ")+elm.first+" undefined.");
+ auto profile = traces_set_list.at(elm.first);