Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit 98474649 authored by EYRAUD-DUBOIS Lionel's avatar EYRAUD-DUBOIS Lionel

Share more data in share= option

parent 7cb19160
......@@ -157,18 +157,24 @@ void UtilAnalysis::write(string prefix) {
InternalShare::InternalShare(string name, Instance* ins) :
shareName(name), instance(ins), allocation(ins->nbTasks, -1),
startTimes(ins->nbTasks, -1) {
shareName(name), instance(ins), allocation(ins->nbTasks, -1),
worker(ins->nbTasks, -1),
startTimes(ins->nbTasks, -1),
endTimes(ins->nbTasks, -1) {
}
void InternalShare::onSchedule(int i, int w, double s, double f) {
allocation[i] = instance->getType(w);
startTimes[i] = s;
allocation[i] = instance->getType(w);
worker[i] = w;
startTimes[i] = s;
endTimes[i] = s;
}
void InternalShare::finish() {
instance->extraData[shareName + "[worker]"] = new vector<int>(worker);
instance->extraData[shareName + "[alloc]"] = new vector<int>(allocation);
instance->extraData[shareName + "[start]"] = new vector<double>(startTimes);
instance->extraData[shareName + "[end]"] = new vector<double>(endTimes);
}
ExportBubble::ExportBubble(string filename, Instance* ins, int btt) :
......
......@@ -82,7 +82,9 @@ class InternalShare : public SchedAction {
std::string shareName;
Instance* instance;
std::vector<int> allocation;
std::vector<int> worker;
std::vector<double> startTimes;
std::vector<double> endTimes;
public:
InternalShare(std::string shareName, Instance* ins);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment