e.loadPlatform(argv[1]);
e.registerFunction("host", host);
e.loadDeployment(argv[2]);
+ std::map<std::string, simgrid::s4u::Storage*>* allStorages = simgrid::s4u::allStorages();
- for (auto const& s : *simgrid::s4u::allStorages()) {
+ for (auto const& s : *allStorages) {
XBT_INFO("Init: %llu/%llu MiB used/free on '%s'", sg_storage_get_size_used(s.second) / INMEGA,
sg_storage_get_size_free(s.second) / INMEGA, s.second->getCname());
}
e.run();
- for (auto const& s : *simgrid::s4u::allStorages()) {
+ for (auto const& s : *allStorages) {
XBT_INFO("End: %llu/%llu MiB used/free on '%s'", sg_storage_get_size_used(s.second) / INMEGA,
sg_storage_get_size_free(s.second) / INMEGA, s.second->getCname());
}
+ delete allStorages;
XBT_INFO("Simulation time %g", simgrid::s4u::Engine::getClock());
return 0;
}