X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7ac272e25e5f27abe5c854124acb21a2d9bcc435..d0ffc37686edcc803601f76ab51fdfed5fc2f241:/src/surf/cpu.hpp diff --git a/src/surf/cpu.hpp b/src/surf/cpu.hpp index 5c699826a3..b7c5e78d03 100644 --- a/src/surf/cpu.hpp +++ b/src/surf/cpu.hpp @@ -46,6 +46,13 @@ public: virtual int getCore(); virtual double getSpeed(double load); virtual double getAvailableSpeed(); + + virtual double getCurrentPowerPeak()=0; + virtual double getPowerPeakAt(int pstate_index)=0; + virtual int getNbPstates()=0; + virtual void setPowerPeakAt(int pstate_index)=0; + virtual double getConsumedEnergy()=0; + void addTraces(void); double m_powerPeak; /*< CPU power peak */ double m_powerScale; /*< Percentage of CPU disponible */ @@ -79,6 +86,7 @@ public: CpuActionLmm(ModelPtr model, double cost, bool failed) : Action(model, cost, failed), ActionLmm(model, cost, failed), CpuAction(model, cost, failed) {}; void updateRemainingLazy(double now); + virtual void updateEnergy()=0; };