X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e94c2a7fc81a82998524aa55db075be69990d4ea..2fb1fa1697309cad26ab7d472db4f8bfa617e0b4:/src/s4u/s4u_Host.cpp diff --git a/src/s4u/s4u_Host.cpp b/src/s4u/s4u_Host.cpp index 27d5e96402..b44b000b23 100644 --- a/src/s4u/s4u_Host.cpp +++ b/src/s4u/s4u_Host.cpp @@ -223,7 +223,9 @@ double Host::get_speed() const return this->pimpl_cpu->get_speed(1.0); } /** @brief Returns the current computation load (in flops per second) + * * The external load (coming from an availability trace) is not taken in account. + * You may also be interested in the load plugin. */ double Host::get_load() const { @@ -626,3 +628,8 @@ sg_host_t sg_host_self() smx_actor_t process = SIMIX_process_self(); return (process == nullptr) ? nullptr : process->host_; } + +double sg_host_load(sg_host_t host) +{ + return host->get_load(); +}