double scale; /**< Current availability of the metric according to the profiles, in [0,1] */
profile::Event* event; /**< The associated profile event associated to the metric */
};
+ profile::Event* state_event_ = nullptr;
public:
/**
virtual void apply_event(profile::Event* event, double value) = 0;
/** @brief Check if the current Resource is used (if it currently serves an action) */
- virtual bool is_used() = 0;
+ virtual bool is_used() const = 0;
/** @brief returns the current load due to activities (in flops per second, byte per second or similar)
*
/** @brief Get the lmm constraint associated to this Resource if it is part of a LMM component (or null if none) */
lmm::Constraint* get_constraint() const { return constraint_; }
-
- profile::Event* state_event_ = nullptr;
};
} // namespace resource
} // namespace kernel