SimGrid  3.18
Versatile Simulation of Distributed Systems
instr_interface.cpp File Reference

Enumerations

enum  InstrUserVariable { INSTR_US_DECLARE, INSTR_US_SET, INSTR_US_ADD, INSTR_US_SUB }
 

Functions

 XBT_LOG_NEW_DEFAULT_SUBCATEGORY (instr_api, instr, "API")
 
static xbt_dynar_t instr_set_to_dynar (std::set< std::string > *filter)
 
void TRACE_category (const char *category)
 Declare a new category with a random color. More...
 
void TRACE_category_with_color (const char *category, const char *color)
 Declare a new category with a color. More...
 
xbt_dynar_t TRACE_get_categories ()
 Get declared categories. More...
 
void TRACE_declare_mark (const char *mark_type)
 Declare a new type for tracing mark. More...
 
void TRACE_declare_mark_value_with_color (const char *mark_type, const char *mark_value, const char *mark_color)
 Declare a new colored value for a previously declared mark type. More...
 
void TRACE_declare_mark_value (const char *mark_type, const char *mark_value)
 Declare a new value for a previously declared mark type. More...
 
void TRACE_mark (const char *mark_type, const char *mark_value)
 Create a new instance of a tracing mark type. More...
 
xbt_dynar_t TRACE_get_marks ()
 Get declared marks. More...
 
static void instr_user_variable (double time, const char *resource, const char *variable_name, const char *father_type, double value, InstrUserVariable what, const char *color, std::set< std::string > *filter)
 
static void instr_user_srcdst_variable (double time, const char *src, const char *dst, const char *variable, const char *father_type, double value, InstrUserVariable what)
 
int TRACE_platform_graph_export_graphviz (const char *filename)
 Creates a file with the topology of the platform file used for the simulator. More...
 
void TRACE_vm_variable_declare (const char *variable)
 Declare a new user variable associated to VMs. More...
 
void TRACE_vm_variable_declare_with_color (const char *variable, const char *color)
 Declare a new user variable associated to VMs with a color. More...
 
void TRACE_vm_variable_set (const char *vm, const char *variable, double value)
 Set the value of a variable of a host. More...
 
void TRACE_vm_variable_add (const char *vm, const char *variable, double value)
 Add a value to a variable of a VM. More...
 
void TRACE_vm_variable_sub (const char *vm, const char *variable, double value)
 Subtract a value from a variable of a VM. More...
 
void TRACE_vm_variable_set_with_time (double time, const char *vm, const char *variable, double value)
 Set the value of a variable of a VM at a given timestamp. More...
 
void TRACE_vm_variable_add_with_time (double time, const char *vm, const char *variable, double value)
 Add a value to a variable of a VM at a given timestamp. More...
 
void TRACE_vm_variable_sub_with_time (double time, const char *vm, const char *variable, double value)
 Subtract a value from a variable of a VM at a given timestamp. More...
 
void TRACE_host_variable_declare (const char *variable)
 Declare a new user variable associated to hosts. More...
 
void TRACE_host_variable_declare_with_color (const char *variable, const char *color)
 Declare a new user variable associated to hosts with a color. More...
 
void TRACE_host_variable_set (const char *host, const char *variable, double value)
 Set the value of a variable of a host. More...
 
void TRACE_host_variable_add (const char *host, const char *variable, double value)
 Add a value to a variable of a host. More...
 
void TRACE_host_variable_sub (const char *host, const char *variable, double value)
 Subtract a value from a variable of a host. More...
 
void TRACE_host_variable_set_with_time (double time, const char *host, const char *variable, double value)
 Set the value of a variable of a host at a given timestamp. More...
 
void TRACE_host_variable_add_with_time (double time, const char *host, const char *variable, double value)
 Add a value to a variable of a host at a given timestamp. More...
 
void TRACE_host_variable_sub_with_time (double time, const char *host, const char *variable, double value)
 Subtract a value from a variable of a host at a given timestamp. More...
 
xbt_dynar_t TRACE_get_host_variables ()
 Get declared user host variables. More...
 
void TRACE_link_variable_declare (const char *variable)
 Declare a new user variable associated to links. More...
 
void TRACE_link_variable_declare_with_color (const char *variable, const char *color)
 Declare a new user variable associated to links with a color. More...
 
void TRACE_link_variable_set (const char *link, const char *variable, double value)
 Set the value of a variable of a link. More...
 
void TRACE_link_variable_add (const char *link, const char *variable, double value)
 Add a value to a variable of a link. More...
 
void TRACE_link_variable_sub (const char *link, const char *variable, double value)
 Subtract a value from a variable of a link. More...
 
void TRACE_link_variable_set_with_time (double time, const char *link, const char *variable, double value)
 Set the value of a variable of a link at a given timestamp. More...
 
void TRACE_link_variable_add_with_time (double time, const char *link, const char *variable, double value)
 Add a value to a variable of a link at a given timestamp. More...
 
void TRACE_link_variable_sub_with_time (double time, const char *link, const char *variable, double value)
 Subtract a value from a variable of a link at a given timestamp. More...
 
void TRACE_link_srcdst_variable_set (const char *src, const char *dst, const char *variable, double value)
 Set the value of the variable present in the links connecting source and destination. More...
 
void TRACE_link_srcdst_variable_add (const char *src, const char *dst, const char *variable, double value)
 Add a value to the variable present in the links connecting source and destination. More...
 
void TRACE_link_srcdst_variable_sub (const char *src, const char *dst, const char *variable, double value)
 Subtract a value from the variable present in the links connecting source and destination. More...
 
void TRACE_link_srcdst_variable_set_with_time (double time, const char *src, const char *dst, const char *variable, double value)
 Set the value of the variable present in the links connecting source and destination at a given timestamp. More...
 
void TRACE_link_srcdst_variable_add_with_time (double time, const char *src, const char *dst, const char *variable, double value)
 Add a value to the variable present in the links connecting source and destination at a given timestamp. More...
 
void TRACE_link_srcdst_variable_sub_with_time (double time, const char *src, const char *dst, const char *variable, double value)
 Subtract a value from the variable present in the links connecting source and dest. More...
 
xbt_dynar_t TRACE_get_link_variables ()
 Get declared user link variables. More...
 
void TRACE_host_state_declare (const char *state)
 Declare a new user state associated to hosts. More...
 
void TRACE_host_state_declare_value (const char *state, const char *value, const char *color)
 Declare a new value for a user state associated to hosts. More...
 
void TRACE_host_set_state (const char *host, const char *state_name, const char *value_name)
 Set the user state to the given value. More...
 
void TRACE_host_push_state (const char *host, const char *state_name, const char *value_name)
 Push a new value for a state of a given host. More...
 
void TRACE_host_pop_state (const char *host, const char *state_name)
 Pop the last value of a state of a given host. More...
 
xbt_dynar_t TRACE_get_node_types ()
 Get Paje container types that can be mapped to the nodes of a graph. More...
 
xbt_dynar_t TRACE_get_edge_types ()
 Get Paje container types that can be mapped to the edges of a graph. More...
 

Variables

std::set< std::stringcreated_categories
 
std::set< std::stringdeclared_marks
 
std::set< std::stringuser_host_variables
 
std::set< std::stringuser_vm_variables
 
std::set< std::stringuser_link_variables
 
std::set< std::stringtrivaNodeTypes
 
std::set< std::stringtrivaEdgeTypes
 

Enumeration Type Documentation

◆ InstrUserVariable

Enumerator
INSTR_US_DECLARE 
INSTR_US_SET 
INSTR_US_ADD 
INSTR_US_SUB 

Function Documentation

◆ XBT_LOG_NEW_DEFAULT_SUBCATEGORY()

XBT_LOG_NEW_DEFAULT_SUBCATEGORY ( instr_api  ,
instr  ,
"API"   
)

◆ instr_set_to_dynar()

static xbt_dynar_t instr_set_to_dynar ( std::set< std::string > *  filter)
static

◆ instr_user_variable()

static void instr_user_variable ( double  time,
const char *  resource,
const char *  variable_name,
const char *  father_type,
double  value,
InstrUserVariable  what,
const char *  color,
std::set< std::string > *  filter 
)
static

◆ instr_user_srcdst_variable()

static void instr_user_srcdst_variable ( double  time,
const char *  src,
const char *  dst,
const char *  variable,
const char *  father_type,
double  value,
InstrUserVariable  what 
)
static

Variable Documentation

◆ created_categories

std::set<std::string> created_categories

◆ declared_marks

std::set<std::string> declared_marks

◆ user_host_variables

std::set<std::string> user_host_variables

◆ user_vm_variables

std::set<std::string> user_vm_variables

◆ user_link_variables

std::set<std::string> user_link_variables

◆ trivaNodeTypes

std::set<std::string> trivaNodeTypes

◆ trivaEdgeTypes

std::set<std::string> trivaEdgeTypes