SimGrid  3.18
Versatile Simulation of Distributed Systems
host_energy.cpp File Reference
#include "simgrid/plugins/energy.h"
#include "simgrid/simix.hpp"
#include "src/plugins/vm/VirtualMachineImpl.hpp"
#include "src/surf/cpu_interface.hpp"
#include "simgrid/s4u/Engine.hpp"
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/split.hpp>
#include <string>
#include <utility>
#include <vector>

Classes

class  simgrid::plugin::PowerRange
 
class  simgrid::plugin::HostEnergy
 

Namespaces

 simgrid
 Alltoall Bruck.
 
 simgrid::plugin
 

Functions

 XBT_LOG_NEW_DEFAULT_SUBCATEGORY (surf_energy, surf, "Logging specific to the SURF energy plugin")
 
static void onCreation (simgrid::s4u::Host &host)
 
static void onActionStateChange (simgrid::surf::CpuAction *action, simgrid::surf::Action::State previous)
 
static void onHostChange (simgrid::s4u::Host &host)
 
static void onHostDestruction (simgrid::s4u::Host &host)
 
static void onSimulationEnd ()
 
void sg_host_energy_plugin_init ()
 Enable host energy plugin. More...
 
void sg_host_energy_update_all ()
 updates the consumption of all hosts More...
 
double sg_host_get_consumed_energy (sg_host_t host)
 Returns the total energy consumed by the host so far (in Joules) More...
 
double sg_host_get_wattmin_at (sg_host_t host, int pstate)
 Get the amount of watt dissipated at the given pstate when the host is idling. More...
 
double sg_host_get_wattmax_at (sg_host_t host, int pstate)
 Returns the amount of watt dissipated at the given pstate when the host burns CPU at 100%. More...
 
double sg_host_get_current_consumption (sg_host_t host)
 Returns the current consumption of the host. More...
 

Function Documentation

◆ XBT_LOG_NEW_DEFAULT_SUBCATEGORY()

XBT_LOG_NEW_DEFAULT_SUBCATEGORY ( surf_energy  ,
surf  ,
"Logging specific to the SURF energy plugin"   
)

◆ onCreation()

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

◆ onActionStateChange()

static void onActionStateChange ( simgrid::surf::CpuAction action,
simgrid::surf::Action::State  previous 
)
static

◆ onHostChange()

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

◆ onHostDestruction()

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

◆ onSimulationEnd()

static void onSimulationEnd ( )
static