Skip to content

Commit 7c15085

Browse files
committed
debugging
1 parent 0226ea0 commit 7c15085

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/energy_consumption/EnergyConsumptionTest.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,8 @@ class EnergyAPICheckTestWMS : public wrench::ExecutionController {
610610
throw std::runtime_error("Shouldn't be able to get list of pstate for a bogus host");
611611
} catch (std::invalid_argument &ignore) {}
612612

613+
std::cerr << "GOT LIST OF PSTATES\n";
614+
613615
std::vector<int> list_of_pstates = wrench::Simulation::getListOfPstates(simulation_hosts[1]);
614616
int max_num_pstate = list_of_pstates.size();
615617
int pstate = std::max(0, max_num_pstate - 1);
@@ -621,6 +623,7 @@ class EnergyAPICheckTestWMS : public wrench::ExecutionController {
621623
"The pstate should have changed but it did not change");
622624
}
623625

626+
std::cerr << "LOOPING OVER HOSTS\n";
624627
//check if the max power possible/min power available in this pstate is different than the maximum power possible/min power available in the previous state
625628
for (auto host: simulation_hosts) {
626629
std::vector<int> states = this->simulation->getListOfPstates(host);
@@ -644,6 +647,7 @@ class EnergyAPICheckTestWMS : public wrench::ExecutionController {
644647
prev_min_power = this->simulation->getMinPowerConsumption(host);
645648
}
646649
}
650+
std::cerr << "LAST CHECK\n";
647651
//lets check if the energy consumed by host1 is less than the energy consumed by host1 + host2
648652
double energy_consumed_1 = this->simulation->getEnergyConsumed(simulation_hosts[1]);
649653
std::map<std::string, double> energy_consumed_2_map = this->simulation->getEnergyConsumed(std::vector<std::string>({simulation_hosts[1], simulation_hosts[2]}));
@@ -657,6 +661,8 @@ class EnergyAPICheckTestWMS : public wrench::ExecutionController {
657661
}
658662
}
659663

664+
std::cerr << "RETURNING\n";
665+
660666
return 0;
661667
}
662668
};

0 commit comments

Comments
 (0)