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;
83 double getStatValue(
const std::string &
name)
const;
85 void startup()
override;
86 void regStats()
override;
96 double eval(
const MathExpr &expr)
const;
102 std::unordered_map<std::string, const Stats::Info*>
statsMap;
const std::string & name()
std::unordered_map< std::string, const Stats::Info * > statsMap
double getStaticPower() const override
Get the static power consumption.
MathExprPowerModelParams Params
A PowerModelState is an abstract class used as interface to get power figures out of SimObjects...
double getDynamicPower() const override
Get the dynamic power consumption.