A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add trace2selist and re-enable unit tests for the stochastic profiles
[simgrid.git]
/
src
/
kernel
/
resource
/
profile
/
ProfileBuilder.cpp
diff --git
a/src/kernel/resource/profile/ProfileBuilder.cpp
b/src/kernel/resource/profile/ProfileBuilder.cpp
index
1924d2d
..
bbfb98d
100644
(file)
--- 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;
}
}
event_list.at(initial_size).date_ += loop_delay;
}
}
+
+ std::vector<StochasticDatedValue> get_pattern() { return pattern; }
};
Profile* ProfileBuilder::from_string(const std::string& name, const std::string& input, double periodicity)
};
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
}
} // 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();
+}
+
+