X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a04d968fb2054d0ba895ddabb2b86f0ff42fd4aa..c70507bd8c5d757ff5a798039c8dc4eaa25daceb:/src/s4u/s4u_host.cpp diff --git a/src/s4u/s4u_host.cpp b/src/s4u/s4u_host.cpp index 42b87910dd..7c18d226d8 100644 --- a/src/s4u/s4u_host.cpp +++ b/src/s4u/s4u_host.cpp @@ -186,6 +186,13 @@ void Host::getProcesses(std::vector* list) } } +/** @brief Returns how many actors have been launched on this host */ +// FIXME: Specify whether the user should expect only non-daemon actors here! +int Host::get_actor_count() const +{ + return this->extension()->process_list.size(); +} + /** @brief Get the peak processor speed (in flops/s), at the specified pstate */ double Host::getPstateSpeed(int pstate_index) { @@ -194,7 +201,7 @@ double Host::getPstateSpeed(int pstate_index) }); } -/** @brief Get the peak processor speed (in flops/s), at the current pstate */ +/** @brief Get the peak processor speed (under full load (=1.0), in flops/s), at the current pstate */ double Host::getSpeed() { return pimpl_cpu->getSpeed(1.0);