X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/25f81e17d9f23d3eaf9b6907eed3cab3b8cf3e6b..ab4d43a39df33bb5f24c3b2cc6d576130b16a649:/src/instr/instr_config.cpp diff --git a/src/instr/instr_config.cpp b/src/instr/instr_config.cpp index f81f5d9b6a..37a1015ea1 100644 --- a/src/instr/instr_config.cpp +++ b/src/instr/instr_config.cpp @@ -251,7 +251,7 @@ std::string TRACE_get_comment_file() int TRACE_precision () { - return xbt_cfg_get_int(OPT_TRACING_PRECISION); + return simgrid::config::get_config(OPT_TRACING_PRECISION); } std::string TRACE_get_filename() @@ -267,21 +267,21 @@ void TRACE_global_init() is_initialised = true; /* name of the tracefile */ - simgrid::config::declareFlag(OPT_TRACING_FILENAME, "Trace file created by the instrumented SimGrid.", - "simgrid.trace"); - simgrid::config::declareFlag(OPT_TRACING_FORMAT, "(smpi only) Switch the output format of Tracing", - "Paje"); - simgrid::config::declareFlag(OPT_TRACING_FORMAT_TI_ONEFILE, - "(smpi only) For replay format only : output to one file only", false); + simgrid::config::declare_flag(OPT_TRACING_FILENAME, "Trace file created by the instrumented SimGrid.", + "simgrid.trace"); + simgrid::config::declare_flag(OPT_TRACING_FORMAT, "(smpi only) Switch the output format of Tracing", + "Paje"); + simgrid::config::declare_flag(OPT_TRACING_FORMAT_TI_ONEFILE, + "(smpi only) For replay format only : output to one file only", false); simgrid::config::alias(OPT_TRACING_FORMAT_TI_ONEFILE, {"tracing/smpi/format/ti_one_file"}); - simgrid::config::declareFlag(OPT_TRACING_COMMENT, "Comment to be added on the top of the trace file.", - ""); - simgrid::config::declareFlag( + simgrid::config::declare_flag(OPT_TRACING_COMMENT, "Comment to be added on the top of the trace file.", + ""); + simgrid::config::declare_flag( OPT_TRACING_COMMENT_FILE, "The contents of the file are added to the top of the trace file as comment.", ""); simgrid::config::alias(OPT_TRACING_COMMENT_FILE, {"tracing/comment_file"}); - simgrid::config::declareFlag(OPT_TRACING_PRECISION, "Numerical precision used when timestamping events " - "(expressed in number of digits after decimal point)", - 6); + simgrid::config::declare_flag(OPT_TRACING_PRECISION, "Numerical precision used when timestamping events " + "(expressed in number of digits after decimal point)", + 6); } static void print_line (const char *option, const char *desc, const char *longdesc, int detailed)