40 #ifndef __SIM_MATHEXPR_POWERMODEL_PM_HH__ 41 #define __SIM_MATHEXPR_POWERMODEL_PM_HH__ 43 #include <unordered_map> 45 #include "params/MathExprPowerModel.hh" 61 typedef MathExprPowerModelParams
Params;
85 double getStatValue(
const std::string &
name)
const;
99 double eval(
const MathExpr &expr)
const;
108 double tryEval(
const MathExpr &expr)
const;
117 std::unordered_map<std::string, Stats::Info*>
stats_map;
const std::string & name()
std::unordered_map< std::string, Stats::Info * > stats_map
MathExprPowerModelParams Params
A PowerModelState is an abstract class used as interface to get power figures out of SimObjects...
double getStaticPower() const
Get the static power consumption.
double getDynamicPower() const
Get the dynamic power consumption.