Go to the documentation of this file.
38 #ifndef __SIM_MATHEXPR_POWERMODEL_PM_HH__
39 #define __SIM_MATHEXPR_POWERMODEL_PM_HH__
41 #include <unordered_map>
43 #include "params/MathExprPowerModel.hh"
59 typedef MathExprPowerModelParams
Params;
102 std::unordered_map<std::string, const Stats::Info*>
statsMap;
double getStaticPower() const override
Get the static power consumption.
void startup() override
startup() is the final initialization call before simulation.
std::unordered_map< std::string, const Stats::Info * > statsMap
MathExprPowerModelParams Params
MathExprPowerModel(const Params *p)
virtual const std::string name() const
double eval(const MathExpr &expr) const
Evaluate an expression in the context of this object, fatal if evaluation fails.
void regStats() override
Callback to set stat parameters.
A PowerModelState is an abstract class used as interface to get power figures out of SimObjects.
double getStatValue(const std::string &name) const
Get the value for a variable (maps to a stat)
double getDynamicPower() const override
Get the dynamic power consumption.
Generated on Wed Sep 30 2020 14:02:14 for gem5 by doxygen 1.8.17