SimGrid  3.21
Versatile Simulation of Distributed Systems
link_energy.cpp File Reference
#include "simgrid/plugins/energy.h"
#include "simgrid/s4u/Engine.hpp"
#include "src/surf/network_interface.hpp"
#include "src/surf/surf_interface.hpp"
#include "surf/surf.hpp"
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/split.hpp>

Classes

class  simgrid::plugin::LinkEnergy
 

Namespaces

 simgrid
 
 simgrid::plugin
 

Functions

 XBT_LOG_NEW_DEFAULT_SUBCATEGORY (link_energy, surf, "Logging specific to the SURF LinkEnergy plugin")
 
static void on_communicate (simgrid::kernel::resource::NetworkAction *action, simgrid::s4u::Host *, simgrid::s4u::Host *)
 
static void on_simulation_end ()
 
int sg_link_energy_is_inited ()
 
void sg_link_energy_plugin_init ()
 Enable energy plugin. More...
 
double sg_link_get_consumed_energy (sg_link_t link)
 Returns the total energy consumed by the link so far (in Joules) More...
 

Function Documentation

◆ XBT_LOG_NEW_DEFAULT_SUBCATEGORY()

XBT_LOG_NEW_DEFAULT_SUBCATEGORY ( link_energy  ,
surf  ,
"Logging specific to the SURF LinkEnergy plugin"   
)

◆ on_communicate()

static void on_communicate ( simgrid::kernel::resource::NetworkAction *  action,
simgrid::s4u::Host ,
simgrid::s4u::Host  
)
static

◆ on_simulation_end()

static void on_simulation_end ( )
static

◆ sg_link_energy_is_inited()

int sg_link_energy_is_inited ( )