#include <sstream>
#include <string_view>
-namespace simgrid {
-namespace kernel {
-namespace profile {
+namespace simgrid::kernel::profile {
bool DatedValue::operator==(DatedValue const& e2) const
{
event_list.at(initial_size).date_ += loop_delay;
}
}
+
+ std::vector<StochasticDatedValue> get_pattern() const { return pattern; }
};
Profile* ProfileBuilder::from_string(const std::string& name, const std::string& input, double periodicity)
return new Profile(name, cb, repeat_delay);
}
+} // namespace simgrid::kernel::profile
+
+std::vector<simgrid::kernel::profile::StochasticDatedValue> trace2selist( const char* c_str) {
+ std::string str(c_str);
+ simgrid::kernel::profile::LegacyUpdateCb cb(str,0);
+ return cb.get_pattern();
+}
+
-} // namespace profile
-} // namespace kernel
-} // namespace simgrid