-/* Copyright (c) 2004-2022. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2004-2023. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
static std::atomic_ullong counter{0};
id_ = counter++;
set_data(data);
- if (MC_is_active())
- MC_ignore_heap(&id_, sizeof id_);
+ MC_ignore_heap(&id_, sizeof id_);
}
Task::Task(const std::string& name, std::vector<s4u::Host*>&& hosts, std::vector<double>&& flops_amount,
{
if (TRACE_actor_is_enabled()) {
auto* process_container = instr::Container::by_name(instr_pid(*MSG_process_self()));
- std::string key = std::string("p") + std::to_string(get_id());
+ std::string key = "p" + std::to_string(get_id());
instr::Container::get_root()->get_link("ACTOR_LINK")->start_event(process_container, "SR", key);
}
if (TRACE_actor_is_enabled() && ret != MSG_HOST_FAILURE && ret != MSG_TRANSFER_FAILURE && ret != MSG_TIMEOUT) {
auto* process_container = simgrid::instr::Container::by_name(instr_pid(*MSG_process_self()));
- std::string key = std::string("p") + std::to_string((*task)->get_id());
+ std::string key = "p" + std::to_string((*task)->get_id());
simgrid::instr::Container::get_root()->get_link("ACTOR_LINK")->end_event(process_container, "SR", key);
}
return ret;