- set_data_size(t) -> set_bytes_amount(t)
get_data_size(t) -> get_bytes_amount(t)
- Massive cleanups in the functions related to the energy
+ - MSG_host_get_pstate_number() -> MSG_host_get_pstate_count()
jMSG:
* Interface improvement:
- Rename Host.isAvail() to Host.isOn()
int new_peak_index=2;
host = MSG_host_self();; //MSG_get_host_by_name("MyHost1");
- int nb = MSG_host_get_pstate_number(host);
- XBT_INFO("Number of Processor states=%d", nb);
+ int nb = MSG_host_get_pstate_count(host);
+ XBT_INFO("Count of Processor states=%d", nb);
double current_peak = MSG_host_get_current_power_peak(host);
XBT_INFO("Current power peak=%f", current_peak);
// Verify the default pstate is set to 0
host = MSG_get_host_by_name("MyHost2");
- int nb2 = MSG_host_get_pstate_number(host);
- XBT_INFO("Number of Processor states=%d", nb2);
+ int nb2 = MSG_host_get_pstate_count(host);
+ XBT_INFO("Count of Processor states=%d", nb2);
double current_peak2 = MSG_host_get_current_power_peak(host);
XBT_INFO("Current power peak=%f", current_peak2);
XBT_PUBLIC(double) MSG_host_get_power_peak_at(msg_host_t h, int pstate);
XBT_PUBLIC(double) MSG_host_get_current_power_peak(msg_host_t h);
-XBT_PUBLIC(int) MSG_host_get_pstate_number(msg_host_t h);
+XBT_PUBLIC(int) MSG_host_get_pstate_count(msg_host_t h);
XBT_PUBLIC(void) MSG_host_set_pstate(msg_host_t h, int pstate);
XBT_PUBLIC(double) MSG_host_get_consumed_energy(msg_host_t h);
}
/** \ingroup m_host_management
- * \brief Return the number of pstates defined for a host. See also @ref SURF_plugin_energy.
+ * \brief Return the total count of pstates defined for a host. See also @ref SURF_plugin_energy.
*
* \param host host to test
*/
-int MSG_host_get_pstate_number(msg_host_t host) {
+int MSG_host_get_pstate_count(msg_host_t host) {
xbt_assert((host != NULL), "Invalid parameters (host is NULL)");
return (simcall_host_get_nb_pstates(host));