SimGrid  3.18
Versatile Simulation of Distributed Systems
instr_config.cpp File Reference
#include "include/xbt/config.hpp"
#include "src/instr/instr_private.hpp"
#include "surf/surf.hpp"
#include <string>
#include <vector>

Macros

#define OPT_TRACING_BASIC   "tracing/basic"
 
#define OPT_TRACING_BUFFER   "tracing/buffer"
 
#define OPT_TRACING_CATEGORIZED   "tracing/categorized"
 
#define OPT_TRACING_COMMENT_FILE   "tracing/comment-file"
 
#define OPT_TRACING_COMMENT   "tracing/comment"
 
#define OPT_TRACING_DISABLE_DESTROY   "tracing/disable-destroy"
 
#define OPT_TRACING_DISABLE_LINK   "tracing/disable-link"
 
#define OPT_TRACING_DISABLE_POWER   "tracing/disable-power"
 
#define OPT_TRACING_DISPLAY_SIZES   "tracing/smpi/display-sizes"
 
#define OPT_TRACING_FILENAME   "tracing/filename"
 
#define OPT_TRACING_FORMAT_TI_ONEFILE   "tracing/smpi/format/ti-one-file"
 
#define OPT_TRACING_FORMAT   "tracing/smpi/format"
 
#define OPT_TRACING_MSG_PROCESS   "tracing/msg/process"
 
#define OPT_TRACING_MSG_VM   "tracing/msg/vm"
 
#define OPT_TRACING_ONELINK_ONLY   "tracing/onelink-only"
 
#define OPT_TRACING_PLATFORM   "tracing/platform"
 
#define OPT_TRACING_PRECISION   "tracing/precision"
 
#define OPT_TRACING_SMPI_COMPUTING   "tracing/smpi/computing"
 
#define OPT_TRACING_SMPI_GROUP   "tracing/smpi/group"
 
#define OPT_TRACING_SMPI_INTERNALS   "tracing/smpi/internals"
 
#define OPT_TRACING_SMPI_SLEEPING   "tracing/smpi/sleeping"
 
#define OPT_TRACING_SMPI   "tracing/smpi"
 
#define OPT_TRACING_TOPOLOGY   "tracing/platform/topology"
 
#define OPT_TRACING   "tracing"
 
#define OPT_TRACING_UNCATEGORIZED   "tracing/uncategorized"
 

Functions

 XBT_LOG_NEW_CATEGORY (instr, "Logging the behavior of the tracing system (used for Visualization/Analysis of simulations)")
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY (instr_config, instr, "Configuration")
 
static void TRACE_getopts ()
 
int TRACE_start ()
 
int TRACE_end ()
 
bool TRACE_needs_platform ()
 
bool TRACE_is_enabled ()
 
bool TRACE_platform ()
 
bool TRACE_platform_topology ()
 
bool TRACE_is_configured ()
 
bool TRACE_smpi_is_enabled ()
 
bool TRACE_smpi_is_grouped ()
 
bool TRACE_smpi_is_computing ()
 
bool TRACE_smpi_is_sleeping ()
 
bool TRACE_smpi_view_internals ()
 
bool TRACE_categorized ()
 
bool TRACE_uncategorized ()
 
bool TRACE_msg_process_is_enabled ()
 
bool TRACE_msg_vm_is_enabled ()
 
bool TRACE_disable_link ()
 
bool TRACE_disable_speed ()
 
bool TRACE_buffer ()
 
bool TRACE_onelink_only ()
 
bool TRACE_disable_destroy ()
 
bool TRACE_basic ()
 
bool TRACE_display_sizes ()
 
std::string TRACE_get_comment ()
 
std::string TRACE_get_comment_file ()
 
int TRACE_precision ()
 
std::string TRACE_get_filename ()
 
void TRACE_global_init ()
 
static void print_line (const char *option, const char *desc, const char *longdesc, int detailed)
 
void TRACE_help (int detailed)
 
static void output_types (const char *name, xbt_dynar_t types, FILE *file)
 
void instr_pause_tracing ()
 
void instr_resume_tracing ()
 

Variables

static bool trace_enabled = false
 
static bool trace_platform
 
static bool trace_platform_topology
 
static bool trace_smpi_enabled
 
static bool trace_smpi_grouped
 
static bool trace_smpi_computing
 
static bool trace_smpi_sleeping
 
static bool trace_view_internals
 
static bool trace_categorized
 
static bool trace_uncategorized
 
static bool trace_msg_process_enabled
 
static bool trace_msg_vm_enabled
 
static bool trace_buffer
 
static bool trace_onelink_only
 
static bool trace_disable_destroy
 
static bool trace_basic
 
static bool trace_display_sizes = false
 
static bool trace_disable_link
 
static bool trace_disable_power
 
static int trace_precision
 
static bool trace_configured = false
 
static bool trace_active = false
 
instr_fmt_type_t instr_fmt_type = instr_fmt_paje
 
static int previous_trace_state = -1
 

Macro Definition Documentation

◆ OPT_TRACING_BASIC

#define OPT_TRACING_BASIC   "tracing/basic"

◆ OPT_TRACING_BUFFER

#define OPT_TRACING_BUFFER   "tracing/buffer"

◆ OPT_TRACING_CATEGORIZED

#define OPT_TRACING_CATEGORIZED   "tracing/categorized"

◆ OPT_TRACING_COMMENT_FILE

#define OPT_TRACING_COMMENT_FILE   "tracing/comment-file"

◆ OPT_TRACING_COMMENT

#define OPT_TRACING_COMMENT   "tracing/comment"

◆ OPT_TRACING_DISABLE_DESTROY

#define OPT_TRACING_DISABLE_DESTROY   "tracing/disable-destroy"

◆ OPT_TRACING_DISABLE_LINK

#define OPT_TRACING_DISABLE_LINK   "tracing/disable-link"

◆ OPT_TRACING_DISABLE_POWER

#define OPT_TRACING_DISABLE_POWER   "tracing/disable-power"

◆ OPT_TRACING_DISPLAY_SIZES

#define OPT_TRACING_DISPLAY_SIZES   "tracing/smpi/display-sizes"

◆ OPT_TRACING_FILENAME

#define OPT_TRACING_FILENAME   "tracing/filename"

◆ OPT_TRACING_FORMAT_TI_ONEFILE

#define OPT_TRACING_FORMAT_TI_ONEFILE   "tracing/smpi/format/ti-one-file"

◆ OPT_TRACING_FORMAT

#define OPT_TRACING_FORMAT   "tracing/smpi/format"

◆ OPT_TRACING_MSG_PROCESS

#define OPT_TRACING_MSG_PROCESS   "tracing/msg/process"

◆ OPT_TRACING_MSG_VM

#define OPT_TRACING_MSG_VM   "tracing/msg/vm"

◆ OPT_TRACING_ONELINK_ONLY

#define OPT_TRACING_ONELINK_ONLY   "tracing/onelink-only"

◆ OPT_TRACING_PLATFORM

#define OPT_TRACING_PLATFORM   "tracing/platform"

◆ OPT_TRACING_PRECISION

#define OPT_TRACING_PRECISION   "tracing/precision"

◆ OPT_TRACING_SMPI_COMPUTING

#define OPT_TRACING_SMPI_COMPUTING   "tracing/smpi/computing"

◆ OPT_TRACING_SMPI_GROUP

#define OPT_TRACING_SMPI_GROUP   "tracing/smpi/group"

◆ OPT_TRACING_SMPI_INTERNALS

#define OPT_TRACING_SMPI_INTERNALS   "tracing/smpi/internals"

◆ OPT_TRACING_SMPI_SLEEPING

#define OPT_TRACING_SMPI_SLEEPING   "tracing/smpi/sleeping"

◆ OPT_TRACING_SMPI

#define OPT_TRACING_SMPI   "tracing/smpi"

◆ OPT_TRACING_TOPOLOGY

#define OPT_TRACING_TOPOLOGY   "tracing/platform/topology"

◆ OPT_TRACING

#define OPT_TRACING   "tracing"

◆ OPT_TRACING_UNCATEGORIZED

#define OPT_TRACING_UNCATEGORIZED   "tracing/uncategorized"

Function Documentation

◆ XBT_LOG_NEW_CATEGORY()

XBT_LOG_NEW_CATEGORY ( instr  ,
"Logging the behavior of the tracing system (used for Visualization/Analysis of simulations)"   
)

◆ XBT_LOG_NEW_DEFAULT_SUBCATEGORY()

XBT_LOG_NEW_DEFAULT_SUBCATEGORY ( instr_config  ,
instr  ,
"Configuration"   
)

◆ TRACE_getopts()

static void TRACE_getopts ( )
static

◆ TRACE_start()

int TRACE_start ( )

◆ TRACE_end()

int TRACE_end ( )

◆ TRACE_needs_platform()

bool TRACE_needs_platform ( )

◆ TRACE_is_enabled()

bool TRACE_is_enabled ( )

◆ TRACE_platform()

bool TRACE_platform ( )

◆ TRACE_platform_topology()

bool TRACE_platform_topology ( )

◆ TRACE_is_configured()

bool TRACE_is_configured ( )

◆ TRACE_smpi_is_enabled()

bool TRACE_smpi_is_enabled ( )

◆ TRACE_smpi_is_grouped()

bool TRACE_smpi_is_grouped ( )

◆ TRACE_smpi_is_computing()

bool TRACE_smpi_is_computing ( )

◆ TRACE_smpi_is_sleeping()

bool TRACE_smpi_is_sleeping ( )

◆ TRACE_smpi_view_internals()

bool TRACE_smpi_view_internals ( )

◆ TRACE_categorized()

bool TRACE_categorized ( )

◆ TRACE_uncategorized()

bool TRACE_uncategorized ( )

◆ TRACE_msg_process_is_enabled()

bool TRACE_msg_process_is_enabled ( )

◆ TRACE_msg_vm_is_enabled()

bool TRACE_msg_vm_is_enabled ( )

◆ TRACE_disable_link()

bool TRACE_disable_link ( )

◆ TRACE_disable_speed()

bool TRACE_disable_speed ( )

◆ TRACE_buffer()

bool TRACE_buffer ( )

◆ TRACE_onelink_only()

bool TRACE_onelink_only ( )

◆ TRACE_disable_destroy()

bool TRACE_disable_destroy ( )

◆ TRACE_basic()

bool TRACE_basic ( )

◆ TRACE_display_sizes()

bool TRACE_display_sizes ( )

◆ TRACE_get_comment()

std::string TRACE_get_comment ( )

◆ TRACE_get_comment_file()

std::string TRACE_get_comment_file ( )

◆ TRACE_precision()

int TRACE_precision ( )

◆ TRACE_get_filename()

std::string TRACE_get_filename ( )

◆ TRACE_global_init()

void TRACE_global_init ( )

◆ print_line()

static void print_line ( const char *  option,
const char *  desc,
const char *  longdesc,
int  detailed 
)
static

◆ TRACE_help()

void TRACE_help ( int  detailed)

◆ output_types()

static void output_types ( const char *  name,
xbt_dynar_t  types,
FILE *  file 
)
static

◆ instr_pause_tracing()

void instr_pause_tracing ( )

◆ instr_resume_tracing()

void instr_resume_tracing ( )

Variable Documentation

◆ trace_enabled

bool trace_enabled = false
static

◆ trace_platform

bool trace_platform
static

◆ trace_platform_topology

bool trace_platform_topology
static

◆ trace_smpi_enabled

bool trace_smpi_enabled
static

◆ trace_smpi_grouped

bool trace_smpi_grouped
static

◆ trace_smpi_computing

bool trace_smpi_computing
static

◆ trace_smpi_sleeping

bool trace_smpi_sleeping
static

◆ trace_view_internals

bool trace_view_internals
static

◆ trace_categorized

bool trace_categorized
static

◆ trace_uncategorized

bool trace_uncategorized
static

◆ trace_msg_process_enabled

bool trace_msg_process_enabled
static

◆ trace_msg_vm_enabled

bool trace_msg_vm_enabled
static

◆ trace_buffer

bool trace_buffer
static

◆ trace_onelink_only

bool trace_onelink_only
static

◆ trace_disable_destroy

bool trace_disable_destroy
static

◆ trace_basic

bool trace_basic
static

◆ trace_display_sizes

bool trace_display_sizes = false
static

◆ trace_disable_link

bool trace_disable_link
static

◆ trace_disable_power

bool trace_disable_power
static

◆ trace_precision

int trace_precision
static

◆ trace_configured

bool trace_configured = false
static

◆ trace_active

bool trace_active = false
static

◆ instr_fmt_type

instr_fmt_type_t instr_fmt_type = instr_fmt_paje

◆ previous_trace_state

int previous_trace_state = -1
static