//check if category is already created
if (created_categories.find(category) != created_categories.end())
return;
- else
- created_categories.insert(category);
+
+ created_categories.emplace(category);
//define final_color
std::string final_color;
XBT_DEBUG("MARK,declare %s", mark_type);
simgrid::instr::Container::get_root()->type_->by_name_or_create<simgrid::instr::EventType>(mark_type);
- declared_marks.insert(mark_type);
+ declared_marks.emplace(mark_type);
}
/** @ingroup TRACE_mark
else
range = {base_address + start, base_address + end};
- locations.push_back({DwarfExpression(ops, ops + len), range});
+ locations.emplace_back(DwarfExpression(ops, ops + len), range);
}
return locations;
}
XBT_DEBUG("Successfully added PAPI event '%s' to the event set.", event_name);
- counters2values.push_back(
- // We cannot just pass *events_it, as this is of type const basic_string
- std::make_pair(std::string(*events_it), 0LL));
+ counters2values.emplace_back(*events_it, 0LL);
}
std::string unit_name = *(event_tokens.begin());