SimGrid  3.21
Versatile Simulation of Distributed Systems
host_load.cpp File Reference
#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
 

Function Documentation

◆ XBT_LOG_NEW_DEFAULT_SUBCATEGORY()

XBT_LOG_NEW_DEFAULT_SUBCATEGORY ( surf_plugin_load  ,
surf  ,
"Logging specific to the HostLoad plugin"   
)

◆ on_host_change()

static void on_host_change ( simgrid::s4u::Host host)
static

◆ on_action_state_change()

static void on_action_state_change ( simgrid::surf::CpuAction *  action,
simgrid::kernel::resource::Action::State   
)
static

◆ sg_host_get_current_load()

double sg_host_get_current_load ( sg_host_t  host)

Returns the current load of the host passed as argument.

See also Plugin_load

◆ sg_host_get_avg_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

◆ sg_host_get_idle_time()

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

◆ sg_host_get_total_idle_time()

double sg_host_get_total_idle_time ( sg_host_t  host)

◆ sg_host_get_computed_flops()

double sg_host_get_computed_flops ( sg_host_t  host)

◆ sg_host_load_reset()

void sg_host_load_reset ( sg_host_t  host)