SimGrid
3.21
Versatile Simulation of Distributed Systems
|
#include "simgrid/plugins/load.h"
#include "src/include/surf/surf.hpp"
#include "src/kernel/activity/ExecImpl.hpp"
#include "src/plugins/vm/VirtualMachineImpl.hpp"
#include <simgrid/s4u.hpp>
Classes | |
class | simgrid::plugin::HostLoad |
Namespaces | |
simgrid | |
simgrid::plugin | |
Functions | |
XBT_LOG_NEW_DEFAULT_SUBCATEGORY (surf_plugin_load, surf, "Logging specific to the HostLoad plugin") | |
static void | on_host_change (simgrid::s4u::Host &host) |
static void | on_action_state_change (simgrid::surf::CpuAction *action, simgrid::kernel::resource::Action::State) |
void | sg_host_load_plugin_init () |
Initializes the HostLoad plugin. More... | |
double | sg_host_get_current_load (sg_host_t host) |
Returns the current load of the host passed as argument. More... | |
double | sg_host_get_avg_load (sg_host_t host) |
Returns the current load of the host passed as argument. More... | |
double | sg_host_get_idle_time (sg_host_t host) |
Returns the time this host was idle since the last reset. More... | |
double | sg_host_get_total_idle_time (sg_host_t host) |
double | sg_host_get_computed_flops (sg_host_t host) |
void | sg_host_load_reset (sg_host_t host) |
Variables | |
static const double | simgrid::plugin::activity_uninitialized_remaining_cost = -1 |
XBT_LOG_NEW_DEFAULT_SUBCATEGORY | ( | surf_plugin_load | , |
surf | , | ||
"Logging specific to the HostLoad plugin" | |||
) |
|
static |
|
static |
double sg_host_get_current_load | ( | sg_host_t | host | ) |
Returns the current load of the host passed as argument.
See also Plugin_load
double sg_host_get_avg_load | ( | sg_host_t | host | ) |
Returns the current load of the host passed as argument.
See also Plugin_load
double sg_host_get_idle_time | ( | sg_host_t | host | ) |
Returns the time this host was idle since the last reset.
See also Plugin_load
double sg_host_get_total_idle_time | ( | sg_host_t | host | ) |
double sg_host_get_computed_flops | ( | sg_host_t | host | ) |
void sg_host_load_reset | ( | sg_host_t | host | ) |