- simgrid::s4u::Host::onCreation.connect(&on_host_added);
- xbt_cfg_register_double(property_sampling_rate, 0.1, nullptr,
- "How often should the dvfs plugin check whether the frequency needs to be changed?");
- xbt_cfg_register_string(property_governor, "performance", nullptr,
- "Which Governor should be used that adapts the CPU frequency?");
-}
+ simgrid::s4u::Host::on_creation.connect(&on_host_added);
+ simgrid::config::declare_flag<double>(
+ property_sampling_rate, "How often should the dvfs plugin check whether the frequency needs to be changed?", 0.1);
+ simgrid::config::declare_flag<std::string>(
+ property_governor, "Which Governor should be used that adapts the CPU frequency?", "performance");