SimGrid  3.13
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_dict_to_dynar (xbt_dict_t 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 (void)
 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 (void)
 Get declared marks. More...
 
static void instr_user_variable (double time, const char *resource, const char *variable, const char *father_type, double value, InstrUserVariable what, const char *color, xbt_dict_t 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...
 
xbt_dynar_t TRACE_get_vm_variables (void)
 Get declared user vm variables. 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 (void)
 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 (void)
 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, const char *value)
 Set the user state to the given value. More...
 
void TRACE_host_push_state (const char *host, const char *state, const char *value)
 Push a new value for a state of a given host. More...
 
void TRACE_host_pop_state (const char *host, const char *state)
 Pop the last value of a state of a given host. More...
 
void TRACE_host_reset_state (const char *host, const char *state)
 Reset the state of a given host. More...
 
xbt_dynar_t TRACE_get_node_types (void)
 Get Paje container types that can be mapped to the nodes of a graph. More...
 
xbt_dynar_t TRACE_get_edge_types (void)
 Get Paje container types that can be mapped to the edges of a graph. More...
 
void TRACE_pause (void)
 Pauses all tracing activities. More...
 
void TRACE_resume (void)
 Resumes all tracing activities. More...
 

Variables

xbt_dict_t created_categories = NULL
 
xbt_dict_t declared_marks = NULL
 
xbt_dict_t user_host_variables = NULL
 
xbt_dict_t user_vm_variables = NULL
 
xbt_dict_t user_link_variables = NULL
 
xbt_dict_t trivaNodeTypes
 
xbt_dict_t trivaEdgeTypes
 

Enumeration Type Documentation

Enumerator
INSTR_US_DECLARE 
INSTR_US_SET 
INSTR_US_ADD 
INSTR_US_SUB 

Function Documentation

XBT_LOG_NEW_DEFAULT_SUBCATEGORY ( instr_api  ,
instr  ,
"API"   
)
static xbt_dynar_t instr_dict_to_dynar ( xbt_dict_t  filter)
static
static void instr_user_variable ( double  time,
const char *  resource,
const char *  variable,
const char *  father_type,
double  value,
InstrUserVariable  what,
const char *  color,
xbt_dict_t  filter 
)
static
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

xbt_dict_t created_categories = NULL
xbt_dict_t declared_marks = NULL
xbt_dict_t user_host_variables = NULL
xbt_dict_t user_vm_variables = NULL
xbt_dict_t user_link_variables = NULL
xbt_dict_t trivaNodeTypes
xbt_dict_t trivaEdgeTypes