- xbt_dynar_t getWattsRangeList();
- xbt_dynar_t power_range_watts_list; /*< List of (min_power,max_power) pairs corresponding to each cpu pstate */
- double watts_off; /*< Consumption when the machine is turned off (shutdown) */
- double total_energy; /*< Total energy consumed by the host */
- double last_updated; /*< Timestamp of the last energy update event*/
- Cpu *cpu;
-
- void unref() {if (--refcount == 0) delete this;}
- void ref() {refcount++;}
- int refcount = 1;
+private:
+ void initWattsRangeList();
+ simgrid::s4u::Host *host = nullptr;
+ std::vector<PowerRange> power_range_watts_list; /*< List of (min_power,max_power) pairs corresponding to each cpu pstate */
+public:
+ double watts_off = 0.0; /*< Consumption when the machine is turned off (shutdown) */
+ double total_energy = 0.0; /*< Total energy consumed by the host */
+ double last_updated; /*< Timestamp of the last energy update event*/