X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cae6ec1dd7be471ac6eb6c4fbc809a6647687d33..618862bd2860e2d350d43aeab911e5b220184276:/src/kernel/resource/profile/ProfileBuilder.cpp diff --git a/src/kernel/resource/profile/ProfileBuilder.cpp b/src/kernel/resource/profile/ProfileBuilder.cpp index 1924d2d35f..bbfb98d805 100644 --- a/src/kernel/resource/profile/ProfileBuilder.cpp +++ b/src/kernel/resource/profile/ProfileBuilder.cpp @@ -212,6 +212,8 @@ public: event_list.at(initial_size).date_ += loop_delay; } } + + std::vector get_pattern() { return pattern; } }; Profile* ProfileBuilder::from_string(const std::string& name, const std::string& input, double periodicity) @@ -244,3 +246,11 @@ Profile* ProfileBuilder::from_callback(const std::string& name, const std::funct } } // namespace simgrid::kernel::profile + +std::vector trace2selist( const char* c_str) { + std::string str(c_str); + simgrid::kernel::profile::LegacyUpdateCb cb(str,0); + return cb.get_pattern(); +} + +