SimGrid  3.13
Versatile Simulation of Distributed Systems
energy.cpp File Reference
#include <utility>
#include <vector>
#include "simgrid/plugins/energy.h"
#include "simgrid/simix.hpp"
#include "src/surf/plugins/energy.hpp"
#include "src/surf/cpu_interface.hpp"
#include "src/surf/virtual_machine.hpp"

Namespaces

 simgrid
 
 simgrid::energy
 

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 onHostStateChange (simgrid::s4u::Host &host)
 
static void onHostDestruction (simgrid::s4u::Host &host)
 
void sg_energy_plugin_init (void)
 Enable energy plugin. 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...
 

Function Documentation

XBT_LOG_NEW_DEFAULT_SUBCATEGORY ( surf_energy  ,
surf  ,
"Logging specific to the SURF energy plugin"   
)
static void onCreation ( simgrid::s4u::Host &  host)
static
static void onActionStateChange ( simgrid::surf::CpuAction action,
simgrid::surf::Action::State  previous 
)
static
static void onHostStateChange ( simgrid::s4u::Host &  host)
static
static void onHostDestruction ( simgrid::s4u::Host &  host)
static
double sg_host_get_consumed_energy ( sg_host_t  host)

Returns the total energy consumed by the host so far (in Joules)

See also SURF Energy Plugin.

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.

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%.