#endif
#include <boost/algorithm/string.hpp>
+#include <string_view>
SIMGRID_REGISTER_PLUGIN(host_dvfs, "Dvfs support", &sg_host_dvfs_plugin_init)
{"performance", "TODO: Doc"}, {"powersave", "TODO: Doc"},
}),
- [](const std::string& val) {
+ [](std::string_view val) {
if (val != "performance")
sg_host_dvfs_plugin_init();
});
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(host_dvfs, kernel, "Logging specific to the HostDvfs plugin");
-namespace simgrid {
-namespace plugin {
-
-namespace dvfs {
+namespace simgrid::plugin::dvfs {
/**
* Add this to your host tag:
void update() override {}
};
#endif
-} // namespace dvfs
-} // namespace plugin
-} // namespace simgrid
+} // namespace simgrid::plugin::dvfs
/* **************************** events callback *************************** */
static void on_host_added(simgrid::s4u::Host& host)