X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/eefc25aa1c98cbb7458cbf5d38007470e3bef7d0..9789ab443456db17ab488320128d58373e81cc7d:/src/surf/cpu_interface.hpp diff --git a/src/surf/cpu_interface.hpp b/src/surf/cpu_interface.hpp index 10f6232abb..f041d8a81c 100644 --- a/src/surf/cpu_interface.hpp +++ b/src/surf/cpu_interface.hpp @@ -125,17 +125,24 @@ public: simgrid::s4u::Host* get_host() { return host_; } +private: int cores_count_ = 1; simgrid::s4u::Host* host_; - std::vector speed_per_pstate_; /*< List of supported CPU capacities (pstate related) */ int pstate_ = 0; /*< Current pstate (index in the speedPeakList)*/ + std::vector speed_per_pstate_; /*< List of supported CPU capacities (pstate related) */ - virtual void setStateTrace(tmgr_trace_t trace); /*< setup the trace file with states events (ON or OFF). Trace must contain boolean values (0 or 1). */ - virtual void - set_speed_trace(tmgr_trace_t trace); /*< setup the trace file with availability events (peak speed changes due to - external load). Trace must contain relative values (ratio between 0 and 1) */ +public: + /** @brief Setup the trace file with states events (ON or OFF). + * Trace must contain boolean values (0 or 1). + */ + virtual void setStateTrace(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}; };