- /** @brief Get the available speed of the current Cpu */
- virtual double getAvailableSpeed();
-
- /** @brief Get the current Cpu computational speed */
- virtual double getPstateSpeedCurrent();
- virtual double getPstateSpeed(int pstate_index);
-
- virtual int getNbPStates();
- virtual void setPState(int pstate_index);
- virtual int getPState();
-
- simgrid::s4u::Host* getHost() { return host_; }
+ /** @brief Get the available speed ratio, between 0 and 1.
+ *
+ * This accounts for external load (see @ref set_speed_trace()).
+ */
+ virtual double get_speed_ratio();