#define OPT_TRACING "tracing"
#define OPT_TRACING_SMPI "tracing/smpi"
#define OPT_TRACING_SMPI_GROUP "tracing/smpi/group"
-#define OPT_TRACING_PLATFORM "tracing/categorized"
+#define OPT_TRACING_CATEGORIZED "tracing/categorized"
#define OPT_TRACING_UNCATEGORIZED "tracing/uncategorized"
#define OPT_TRACING_MSG_TASK "tracing/msg/task"
#define OPT_TRACING_MSG_PROCESS "tracing/msg/process"
return xbt_cfg_get_int(_surf_cfg_set, OPT_TRACING_SMPI_GROUP);
}
-int TRACE_platform_is_enabled(void)
+int TRACE_categorized (void)
{
- return xbt_cfg_get_int(_surf_cfg_set, OPT_TRACING_PLATFORM);
+ return xbt_cfg_get_int(_surf_cfg_set, OPT_TRACING_CATEGORIZED);
}
int TRACE_uncategorized (void)
/* platform */
int default_tracing_platform = 0;
- xbt_cfg_register(&_surf_cfg_set, OPT_TRACING_PLATFORM,
+ xbt_cfg_register(&_surf_cfg_set, OPT_TRACING_CATEGORIZED,
"Tracing of categorized platform (host and link) utilization.",
xbt_cfgelm_int, &default_tracing_platform, 0, 1,
NULL, NULL);
" It activates the tracing system and register the simulation platform\n"
" in the trace file. You have to enable this option to others take effect.",
detailed);
- print_line (OPT_TRACING_PLATFORM, "Trace categorized resource utilization",
+ print_line (OPT_TRACING_CATEGORIZED, "Trace categorized resource utilization",
" It activates the categorized resource utilization tracing. It should\n"
" be enabled if tracing categories are used by this simulator.",
detailed);
#undef OPT_TRACING
#undef OPT_TRACING_SMPI
#undef OPT_TRACING_SMPI_GROUP
-#undef OPT_TRACING_PLATFORM
+#undef OPT_TRACING_CATEGORIZED
#undef OPT_TRACING_UNCATEGORIZED
#undef OPT_TRACING_MSG_TASK
#undef OPT_TRACING_MSG_PROCESS
/* for registering application categories on top of platform */
snprintf(state, 100, "b%s", category);
- if (TRACE_platform_is_enabled())
+ if (TRACE_categorized ())
pajeDefineVariableTypeWithColor(state, "LINK", state, final_color);
snprintf(state, 100, "p%s", category);
- if (TRACE_platform_is_enabled())
+ if (TRACE_categorized ())
pajeDefineVariableTypeWithColor(state, "HOST", state, final_color);
val_one = xbt_strdup("1");
int TRACE_is_configured(void);
int TRACE_smpi_is_enabled(void);
int TRACE_smpi_is_grouped(void);
-int TRACE_platform_is_enabled(void);
+int TRACE_categorized (void);
int TRACE_uncategorized (void);
int TRACE_msg_task_is_enabled(void);
int TRACE_msg_process_is_enabled(void);
xbt_dynar_t array = xbt_dynar_new(sizeof(char *), xbt_free);
char *var_cpy = xbt_strdup(variable);
xbt_dynar_push(array, &var_cpy);
- if (TRACE_platform_is_enabled())
+ if (TRACE_categorized ())
pajeSetVariable(now, variable, resource, "0");
xbt_dict_set(platform_variables, resource, array,
xbt_dynar_free_voidp);
if (flag == 0) {
char *var_cpy = xbt_strdup(variable);
xbt_dynar_push(array, &var_cpy);
- if (TRACE_platform_is_enabled())
+ if (TRACE_categorized ())
pajeSetVariable(now, variable, resource, "0");
}
}
{
if (!TRACE_is_active())
return;
- if (!TRACE_platform_is_enabled())
+ if (!TRACE_categorized ())
return;
if (!category)
return;
const char *dst, const char *variable,
double value, const char *what)
{
- if (!TRACE_is_active() || !TRACE_platform_is_enabled())
+ if (!TRACE_is_active() || !TRACE_categorized ())
return;
char valuestr[100];
double value, const char *what)
{
char valuestr[100];
- if (!TRACE_is_active() || !TRACE_platform_is_enabled())
+ if (!TRACE_is_active() || !TRACE_categorized ())
return;
snprintf(valuestr, 100, "%g", value);