std::vector<double> speed_per_pstate_; /*< List of supported CPU capacities (pstate related) */
public:
- /** @brief Setup the trace file with states events (ON or OFF).
- * Trace must contain boolean values (0 or 1).
- */
- virtual void set_state_trace(tmgr_trace_t trace);
/*< @brief Setup the trace file with availability events (peak speed changes due to external load).
* Trace must contain relative values (ratio between 0 and 1)
*/
virtual void set_speed_trace(tmgr_trace_t trace);
protected:
- tmgr_trace_event_t state_event_ = nullptr;
Metric speed_ = {1.0, 0, nullptr};
};
class XBT_PUBLIC CpuAction : public simgrid::kernel::resource::Action {
public:
/** @brief Signal emitted when the action state changes (ready/running/done, etc)
- * Signature: `void(CpuAction *action, simgrid::kernel::resource::Action::State previous)`
+ * Signature: `void(CpuAction *action)`
*/
- static simgrid::xbt::signal<void(simgrid::surf::CpuAction*, simgrid::kernel::resource::Action::State)> onStateChange;
+ static simgrid::xbt::signal<void(simgrid::surf::CpuAction*)> on_state_change;
/** @brief Signal emitted when the action share changes (amount of flops it gets)
* Signature: `void(CpuAction *action)`
*/