#include "simgrid/s4u/storage.hpp"
#include "src/msg/msg_private.h"
#include "src/simix/ActorImpl.hpp"
+#include "src/simix/smx_host_private.h"
+
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(msg);
{
xbt_assert((host != nullptr), "Invalid parameters");
smx_actor_t actor = NULL;
- xbt_swag_foreach(actor, host->processes()) {
+ xbt_swag_foreach(actor, host->extension<simgrid::simix::Host>()->process_list) {
msg_process_t p = actor->ciface();
xbt_dynar_push(whereto, &p);
}
return host->getPstateSpeed(pstate_index);
}
-/** \ingroup m_host_management
- * \brief Return the current speed of the processor (in flop/s)
- *
- * \param host host to test
- * \return Returns the current processor speed
- */
-double MSG_host_get_current_power_peak(msg_host_t host) {
- xbt_assert((host != nullptr), "Invalid parameters (host is nullptr)");
- return host->getPstateSpeedCurrent();
-}
-
/** \ingroup m_host_management
* \brief Return the total count of pstates defined for a host. See also @ref SURF_plugin_energy.
*