-/** @brief Gets the pstate at which that host currently runs */
-int sg_host_get_pstate(sg_host_t host) {
- return surf_host_get_pstate(host);
+/** @brief Displays debugging information about a host */
+void sg_host_dump(sg_host_t host)
+{
+ xbt_dict_t props;
+
+ XBT_INFO("Displaying host %s", host->cname());
+ XBT_INFO(" - speed: %.0f", host->speed());
+ XBT_INFO(" - available speed: %.2f", sg_host_get_available_speed(host));
+ props = host->properties();
+
+ if (not xbt_dict_is_empty(props)) {
+ XBT_INFO(" - properties:");
+ xbt_dict_cursor_t cursor = nullptr;
+ char* key;
+ char* data;
+
+ xbt_dict_foreach(props,cursor,key,data) {
+ XBT_INFO(" %s->%s",key,data);
+ }
+ }